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>
This commit is contained in:
parent
0405109eed
commit
34f52dd0ad
|
@ -28,6 +28,8 @@ SPD_SOURCES += micron_dimm_MT52L256M32D1PF-107
|
||||||
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 += 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)
|
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,13 @@
|
||||||
* 0b0011 - 2GiB total - 1 x 2GiB Micron MT52L256M32D1PF-107
|
* 0b0011 - 2GiB total - 1 x 2GiB Micron MT52L256M32D1PF-107
|
||||||
* 0b0100 - 4GiB total - 2 x 2GiB Samsung K4E8E324EB-EGCF 1600MHz
|
* 0b0100 - 4GiB total - 2 x 2GiB Samsung K4E8E324EB-EGCF 1600MHz
|
||||||
* 0b0101 - 2GiB total - 1 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)
|
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:
|
case 5:
|
||||||
printk(BIOS_DEBUG, "2GiB Samsung K4E8E324EB-EGCF\n");
|
printk(BIOS_DEBUG, "2GiB Samsung K4E8E324EB-EGCF\n");
|
||||||
break;
|
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 */
|
/* 1:1 mapping between ram_id and spd_index for kefka */
|
||||||
|
|
Loading…
Reference in New Issue