summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cyan
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2019-12-19 01:09:57 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-12-26 10:46:56 +0000
commit34f52dd0ad4e701965f4653d28e3d3f0cc042f49 (patch)
tree38753212c291d42c812c2453851a901aae4714d4 /src/mainboard/google/cyan
parent0405109eed3ddb4305bdb8ac59517e690732adc5 (diff)
downloadcoreboot-34f52dd0ad4e701965f4653d28e3d3f0cc042f49.tar.xz
mb/google/kefka: Add missing SPD
Adapted from Chromium commit 9522225e [Kefka: Add memory SPD info for Hynix H9CCNNN8GTALAR-NUD] Add current available ram_id to support Hynix H9CCNNN8GTALAR-NUD spd info. RAM_ID: 0110 4GiB Hynix H9CCNNN8GTALAR-NUD RAM_ID: 0111 2GiB Hynix H9CCNNN8GTALAR-NUD Original-Change-Id: I48386ff3e5f80de94ea87359a09a5ec2577043b5 Original-Signed-off-by: Peggy Chuang <peggychuang@ami.corp-partner.google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/664517 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Change-Id: I0ae76c4d8313246927bbc3f71b21f3611c89a6e3 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37901 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/google/cyan')
-rw-r--r--src/mainboard/google/cyan/variants/kefka/Makefile.inc2
-rw-r--r--src/mainboard/google/cyan/variants/kefka/spd_util.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mainboard/google/cyan/variants/kefka/Makefile.inc b/src/mainboard/google/cyan/variants/kefka/Makefile.inc
index 7799e8d2b3..d37ba1da08 100644
--- a/src/mainboard/google/cyan/variants/kefka/Makefile.inc
+++ b/src/mainboard/google/cyan/variants/kefka/Makefile.inc
@@ -28,6 +28,8 @@ SPD_SOURCES += micron_dimm_MT52L256M32D1PF-107
SPD_SOURCES += micron_dimm_MT52L256M32D1PF-107
SPD_SOURCES += samsung_2GiB_dimm_K4E8E324EB-EGCF
SPD_SOURCES += samsung_2GiB_dimm_K4E8E324EB-EGCF
+SPD_SOURCES += hynix_dimm_H9CCNNN8GTALAR-NUD
+SPD_SOURCES += hynix_dimm_H9CCNNN8GTALAR-NUD
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
diff --git a/src/mainboard/google/cyan/variants/kefka/spd_util.c b/src/mainboard/google/cyan/variants/kefka/spd_util.c
index d9adb721d1..9db56b9492 100644
--- a/src/mainboard/google/cyan/variants/kefka/spd_util.c
+++ b/src/mainboard/google/cyan/variants/kefka/spd_util.c
@@ -25,10 +25,13 @@
* 0b0011 - 2GiB total - 1 x 2GiB Micron MT52L256M32D1PF-107
* 0b0100 - 4GiB total - 2 x 2GiB Samsung K4E8E324EB-EGCF 1600MHz
* 0b0101 - 2GiB total - 1 x 2GiB Samsung K4E8E324EB-EGCF 1600MHz
+ * 0b0110 - 4GiB total - 2 x 2GiB Hynix H9CCNNN8GTALAR-NUD
+ * 0b0111 - 2GiB total - 1 x 2GiB Hynix H9CCNNN8GTALAR-NUD
*
*/
-static const uint32_t dual_channel_config = (1 << 0) | (1 << 2) | (1 << 4);
+static const uint32_t dual_channel_config =
+ (1 << 0) | (1 << 2) | (1 << 4) | (1 << 6);
int get_variant_spd_index(int ram_id, int *dual)
{
@@ -55,6 +58,12 @@ int get_variant_spd_index(int ram_id, int *dual)
case 5:
printk(BIOS_DEBUG, "2GiB Samsung K4E8E324EB-EGCF\n");
break;
+ case 6:
+ printk(BIOS_DEBUG, "4GiB Hynix H9CCNNN8GTALAR-NUD\n");
+ break;
+ case 7:
+ printk(BIOS_DEBUG, "2GiB Hynix H9CCNNN8GTALAR-NUD\n");
+ break;
}
/* 1:1 mapping between ram_id and spd_index for kefka */