From 193203f90b49de06e4997aad53fb6d556c34798f Mon Sep 17 00:00:00 2001 From: Deepti Deshatty Date: Thu, 29 Apr 2021 21:32:58 +0530 Subject: mb/intel/adlrvp: Add board id for MR DDR5 SKU Add support for Maple Ridge DDR5 SKU with boardid 0x16 TEST=Verified build for ADL-P Chrome RVP Signed-off-by: Deepti Deshatty Change-Id: I9f0e9072f5866b60fb8463bb90f61915c78568db Reviewed-on: https://review.coreboot.org/c/coreboot/+/52760 Tested-by: build bot (Jenkins) Reviewed-by: Meera Ravindranath Reviewed-by: Maulik V Vaghela Reviewed-by: V Sowmya --- src/mainboard/intel/adlrvp/include/baseboard/variants.h | 3 ++- src/mainboard/intel/adlrvp/mainboard.c | 3 ++- src/mainboard/intel/adlrvp/memory.c | 3 ++- src/mainboard/intel/adlrvp/romstage_fsp_params.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/mainboard/intel') diff --git a/src/mainboard/intel/adlrvp/include/baseboard/variants.h b/src/mainboard/intel/adlrvp/include/baseboard/variants.h index af641488c9..9a94db2c7a 100644 --- a/src/mainboard/intel/adlrvp/include/baseboard/variants.h +++ b/src/mainboard/intel/adlrvp/include/baseboard/variants.h @@ -13,7 +13,8 @@ enum adl_boardid { ADL_P_LP4_1 = 0x10, ADL_P_LP4_2 = 0x11, /* ADL-P DDR5 RVPs */ - ADL_P_DDR5 = 0x12, + ADL_P_DDR5_1 = 0x12, + ADL_P_DDR5_2 = 0x16, /* ADL-P LPDDR5 RVP */ ADL_P_LP5_1 = 0x13, ADL_P_LP5_2 = 0x17, diff --git a/src/mainboard/intel/adlrvp/mainboard.c b/src/mainboard/intel/adlrvp/mainboard.c index 0ab80d2313..eb86773ca0 100644 --- a/src/mainboard/intel/adlrvp/mainboard.c +++ b/src/mainboard/intel/adlrvp/mainboard.c @@ -47,7 +47,8 @@ const char *mainboard_vbt_filename(void) case ADL_P_LP5_1: case ADL_P_LP5_2: return "vbt_adlrvp_lp5.bin"; - case ADL_P_DDR5: + case ADL_P_DDR5_1: + case ADL_P_DDR5_2: return "vbt_adlrvp_ddr5.bin"; default: return "vbt.bin"; diff --git a/src/mainboard/intel/adlrvp/memory.c b/src/mainboard/intel/adlrvp/memory.c index 29eb74497d..353cf4eff8 100644 --- a/src/mainboard/intel/adlrvp/memory.c +++ b/src/mainboard/intel/adlrvp/memory.c @@ -300,7 +300,8 @@ const struct mb_cfg *variant_memory_params(void) case ADL_P_DDR4_1: case ADL_P_DDR4_2: return &ddr4_mem_config; - case ADL_P_DDR5: + case ADL_P_DDR5_1: + case ADL_P_DDR5_2: return &ddr5_mem_config; case ADL_P_LP5_1: case ADL_P_LP5_2: diff --git a/src/mainboard/intel/adlrvp/romstage_fsp_params.c b/src/mainboard/intel/adlrvp/romstage_fsp_params.c index 2c611250a5..9fff25723e 100644 --- a/src/mainboard/intel/adlrvp/romstage_fsp_params.c +++ b/src/mainboard/intel/adlrvp/romstage_fsp_params.c @@ -52,7 +52,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) switch (board_id) { case ADL_P_DDR4_1: case ADL_P_DDR4_2: - case ADL_P_DDR5: + case ADL_P_DDR5_1: + case ADL_P_DDR5_2: memcfg_init(&mupd->FspmConfig, mem_config, &ddr4_ddr5_spd_info, half_populated); break; case ADL_P_LP4_1: -- cgit v1.2.3