diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2017-10-07 17:01:04 -0500 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-10-13 14:30:21 +0000 |
commit | a34cf524692737b83bfdf7e482ddf15ab9108c0d (patch) | |
tree | cb3347fdd767733449fbb486d3aa9142cb1f5678 /src/mainboard/google/cyan/variants/edgar | |
parent | 8a02727f508826ef8f1e8bbe7581eedc2e0c1198 (diff) |
google/cyan variants: fix single/dual channel reporting
Fix typos in determining single/dual channel in cyan variants
which resulted in all boards being reported as 4GB/dual channel
in the cbmem console log.
These typos were found and fixed in yet-to-be-merged variants;
this patch applies the same fixes to already-merged boards.
Change-Id: I615463668e77bd817d5270f0f04d4d01f74e3b47
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/21917
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/google/cyan/variants/edgar')
-rw-r--r-- | src/mainboard/google/cyan/variants/edgar/spd_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/cyan/variants/edgar/spd_util.c b/src/mainboard/google/cyan/variants/edgar/spd_util.c index 61aa9a7108..9651c27d17 100644 --- a/src/mainboard/google/cyan/variants/edgar/spd_util.c +++ b/src/mainboard/google/cyan/variants/edgar/spd_util.c @@ -32,7 +32,7 @@ int get_variant_spd_index(int ram_id, int *dual) { /* Determine if single or dual channel memory system */ /* RAMID1 is deterministic for edgar */ - *dual = ((ram_id > 1) & 0x1) ? 0 : 1; + *dual = ((ram_id >> 1) & 0x1) ? 0 : 1; /* Display the RAM type */ switch (ram_id) { |