diff options
Diffstat (limited to 'src/mainboard/google/cyan/variants/terra/spd_util.c')
-rw-r--r-- | src/mainboard/google/cyan/variants/terra/spd_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/cyan/variants/terra/spd_util.c b/src/mainboard/google/cyan/variants/terra/spd_util.c index 7b4629d05a..72d17d5085 100644 --- a/src/mainboard/google/cyan/variants/terra/spd_util.c +++ b/src/mainboard/google/cyan/variants/terra/spd_util.c @@ -37,10 +37,10 @@ int get_variant_spd_index(int ram_id, int *dual) /* Determine if single or dual channel memory system */ /* RAMID3 is deterministic for terra */ - *dual = ((ram_id > 3) & 0x1) ? 1 : 0; + *dual = ((ram_id >> 3) & 0x1) ? 1 : 0; /* 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 1600MHz\n"); |