mb/google/kukui: Add dedicated memory map for kappa

Add a dedicated memory mapping table starting at index 0x40:
0x40 SAMSUNG 4GB LP4X	K4UBE3D4AA-MGCR
0x41 HYNIX 4GB QDP LP4X	H9HCNNNCPMALHR-NEE
0x42 MICRON 4GB LP4X	MT53E1G32D4NQ-046 WT:E
0x43 MICRON 4GB LP4X	MT53E1G32D2NP-046 WT:A
0x44 MICRON 4GB LP4X	MT53E1G32D2NP-046 WT:B
0x45 HYNIX 4GB LP4X	H54G56CYRBX247
0x46 SAMSUNG 4GB LP4X	K4UBE3D4AB-MGCL
0x48 SAMSUNG 4GB LP4X	K4UBE3D4AA-MGCL
0x49 MICRON 8GB LP4X	MT53E2G32D4NQ-046 WT:A
0x4A HYNIX 4GB QDP LP4X	H9HCNNNCPMMLXR-NEE
0x4B Micron		MT29VZZZAD9GQFSM

BUG=b:162379736
BRANCH=kukui
TEST=emerge-jacuzzi coreboot

Signed-off-by: Kevin Chiu <kevin.chiu@quantatw.com>
Change-Id: I97f296cb8c35fd2f979a05d0b97a0562c1b472f3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57442
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Kevin Chiu 2021-09-07 16:59:38 +08:00 committed by Felix Held
parent 8d6c1c2d0e
commit 2c7e498876
2 changed files with 14 additions and 0 deletions

View File

@ -92,6 +92,7 @@ config BOARD_SDRAM_TABLE_OFFSET
default 0x10 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE || BOARD_GOOGLE_FENNEL || BOARD_GOOGLE_CERISE || BOARD_GOOGLE_STERN || BOARD_GOOGLE_MAKOMO || BOARD_GOOGLE_MUNNA default 0x10 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE || BOARD_GOOGLE_FENNEL || BOARD_GOOGLE_CERISE || BOARD_GOOGLE_STERN || BOARD_GOOGLE_MAKOMO || BOARD_GOOGLE_MUNNA
default 0x20 if BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU default 0x20 if BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU
default 0x30 if BOARD_GOOGLE_COZMO || BOARD_GOOGLE_PICO default 0x30 if BOARD_GOOGLE_COZMO || BOARD_GOOGLE_PICO
default 0x40 if BOARD_GOOGLE_KAPPA
default 0x0 default 0x0
config BOARD_OVERRIDE_LCM_ID config BOARD_OVERRIDE_LCM_ID

View File

@ -55,6 +55,19 @@ static const char *const sdram_configs[] = {
[0x39] = "sdram-lpddr4x-MT53E2G32D4NQ-046-8GB", [0x39] = "sdram-lpddr4x-MT53E2G32D4NQ-046-8GB",
[0x3a] = "sdram-lpddr4x-H9HCNNNCPMMLXR-NEE-4GB", [0x3a] = "sdram-lpddr4x-H9HCNNNCPMMLXR-NEE-4GB",
[0x3b] = "sdram-lpddr4x-H9HCNNNFAMMLXR-NEE-8GB", [0x3b] = "sdram-lpddr4x-H9HCNNNFAMMLXR-NEE-8GB",
/* Table shared by Kappa and its variants, offset = 0x40 */
[0x40] = "sdram-lpddr4x-K4UBE3D4AA-MGCR-4GB",
[0x41] = "sdram-lpddr4x-H9HCNNNCPMALHR-4GB",
[0x42] = "sdram-lpddr4x-MT53E1G32D4NQ-4GB",
[0x43] = "sdram-lpddr4x-MT53E1G32D2NP-046-4GB",
[0x44] = "sdram-lpddr4x-MT53E1G32D4NQ-4GB",
[0x45] = "sdram-lpddr4x-H9HCNNNCPMALHR-4GB",
[0x46] = "sdram-lpddr4x-K4UBE3D4AA-MGCL-4GB",
[0x48] = "sdram-lpddr4x-K4UBE3D4AA-MGCL-4GB",
[0x49] = "sdram-lpddr4x-MT53E2G32D4NQ-046-8GB",
[0x4a] = "sdram-lpddr4x-H9HCNNNCPMMLXR-NEE-4GB",
[0x4b] = "sdram-lpddr4x-MT29VZZZAD9GQFSM-046-4GB",
}; };
static struct sdram_params params; static struct sdram_params params;