summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cyan/variants/celes/spd_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/cyan/variants/celes/spd_util.c')
-rw-r--r--src/mainboard/google/cyan/variants/celes/spd_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/cyan/variants/celes/spd_util.c b/src/mainboard/google/cyan/variants/celes/spd_util.c
index d6253368e9..baf67053f6 100644
--- a/src/mainboard/google/cyan/variants/celes/spd_util.c
+++ b/src/mainboard/google/cyan/variants/celes/spd_util.c
@@ -49,10 +49,10 @@ int get_variant_spd_index(int ram_id, int *dual)
/* Determine if single or dual channel memory system */
/* RAMID3 is deterministic for celes */
- *dual = ((ram_id > 3) & 0x1) ? 0 : 1;
+ *dual = ((ram_id >> 3) & 0x1) ? 0 : 1;
/* Display the RAM type */
- printk(BIOS_DEBUG, dual ? "4GiB " : "2GiB ");
+ printk(BIOS_DEBUG, *dual ? "4GiB " : "2GiB ");
switch (spd_index) {
case 0:
printk(BIOS_DEBUG, "Samsung K4E8E304EE-EGCE\n");