From 6b0ebee63e5974560f755d0d5dac7fa752899b67 Mon Sep 17 00:00:00 2001 From: Lucas Chen Date: Fri, 26 Mar 2021 16:35:02 +0800 Subject: [PATCH] mb/google/kukui/var/cozmo: Add RAM ID table Add the RAM ID table offset 0x30 for cozmo. BUG=b:182776048 BRANCH=kukui TEST=emerge-jacuzzi coreboot Signed-off-by: Lucas Chen Change-Id: Ia29d38f61975c5e29a901adbfad343153628405f Reviewed-on: https://review.coreboot.org/c/coreboot/+/51845 Reviewed-by: Hung-Te Lin Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/mainboard/google/kukui/Kconfig | 1 + src/mainboard/google/kukui/sdram_configs.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig index aa14d26778..d03f5433ee 100644 --- a/src/mainboard/google/kukui/Kconfig +++ b/src/mainboard/google/kukui/Kconfig @@ -79,6 +79,7 @@ config BOARD_SDRAM_TABLE_OFFSET hex default 0x10 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE || BOARD_GOOGLE_FENNEL || BOARD_GOOGLE_CERISE || BOARD_GOOGLE_STERN || BOARD_GOOGLE_MAKOMO default 0x20 if BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU + default 0x30 if BOARD_GOOGLE_COZMO default 0x0 config BOARD_OVERRIDE_LCM_ID diff --git a/src/mainboard/google/kukui/sdram_configs.c b/src/mainboard/google/kukui/sdram_configs.c index a2c80e7ba5..9eb04fed28 100644 --- a/src/mainboard/google/kukui/sdram_configs.c +++ b/src/mainboard/google/kukui/sdram_configs.c @@ -46,6 +46,14 @@ static const char *const sdram_configs[] = { [0x27] = "sdram-lpddr4x-SDADA4CR-128G-4GB", [0x28] = "sdram-lpddr4x-MT29VZZZCD9GQKPR-046-8GB", + /* Table shared by Cozmo and its variants, offset = 0x30 */ + [0x30] = "sdram-lpddr4x-K4UBE3D4AA-MGCR-4GB", + [0x31] = "sdram-lpddr4x-H9HCNNNCPMALHR-4GB", + [0x32] = "sdram-lpddr4x-MT53E1G32D4NQ-4GB", + [0x38] = "sdram-lpddr4x-K4UBE3D4AA-MGCL-4GB", + [0x39] = "sdram-lpddr4x-MT53E2G32D4NQ-046-8GB", + [0x3a] = "sdram-lpddr4x-H9HCNNNCPMMLXR-NEE-4GB", + [0x3b] = "sdram-lpddr4x-H9HCNNNFAMMLXR-NEE-8GB", }; static struct sdram_params params;