summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-02-20 13:52:52 +0530
committerPatrick Georgi <pgeorgi@google.com>2021-02-22 07:26:14 +0000
commit40f53f4b8790c72247901d05e4369ca3e04b28f8 (patch)
treec2955430aec95fd28fd05cd73151fff0eb3c5678
parentcbcae2744abcc38296106ff87897a5c02f267989 (diff)
mb/intel/adlrvp: Add support for LP5 SKU with boardid 0x17
Change-Id: I4f17f9d58d2c07264d7d8e83a6fce832c9304c24 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50980 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/mainboard/intel/adlrvp/include/baseboard/variants.h3
-rw-r--r--src/mainboard/intel/adlrvp/memory.c3
-rw-r--r--src/mainboard/intel/adlrvp/romstage_fsp_params.c3
-rw-r--r--src/mainboard/intel/adlrvp/spd/Makefile.inc4
4 files changed, 10 insertions, 3 deletions
diff --git a/src/mainboard/intel/adlrvp/include/baseboard/variants.h b/src/mainboard/intel/adlrvp/include/baseboard/variants.h
index 9cb8640860..295e1b1e3b 100644
--- a/src/mainboard/intel/adlrvp/include/baseboard/variants.h
+++ b/src/mainboard/intel/adlrvp/include/baseboard/variants.h
@@ -15,7 +15,8 @@ enum adl_boardid {
/* ADL-P DDR5 RVPs */
ADL_P_DDR5 = 0x12,
/* ADL-P LPDDR5 RVP */
- ADL_P_LP5 = 0x13,
+ ADL_P_LP5_1 = 0x13,
+ ADL_P_LP5_2 = 0x17,
/* ADL-P DDR4 RVPs */
ADL_P_DDR4_1 = 0x14,
ADL_P_DDR4_2 = 0x3F,
diff --git a/src/mainboard/intel/adlrvp/memory.c b/src/mainboard/intel/adlrvp/memory.c
index 5a7fa57832..6f158a057f 100644
--- a/src/mainboard/intel/adlrvp/memory.c
+++ b/src/mainboard/intel/adlrvp/memory.c
@@ -171,7 +171,8 @@ const struct mb_cfg *variant_memory_params(void)
return &ddr4_mem_config;
case ADL_P_DDR5:
return &ddr5_mem_config;
- case ADL_P_LP5:
+ case ADL_P_LP5_1:
+ case ADL_P_LP5_2:
return &lp5_mem_config;
default:
die("unsupported board id : 0x%x\n", board_id);
diff --git a/src/mainboard/intel/adlrvp/romstage_fsp_params.c b/src/mainboard/intel/adlrvp/romstage_fsp_params.c
index c95d469a7c..6ae5c17610 100644
--- a/src/mainboard/intel/adlrvp/romstage_fsp_params.c
+++ b/src/mainboard/intel/adlrvp/romstage_fsp_params.c
@@ -57,7 +57,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
break;
case ADL_P_LP4_1:
case ADL_P_LP4_2:
- case ADL_P_LP5:
+ case ADL_P_LP5_1:
+ case ADL_P_LP5_2:
memcfg_init(&mupd->FspmConfig, mem_config, &lp4_lp5_spd_info, half_populated);
break;
default:
diff --git a/src/mainboard/intel/adlrvp/spd/Makefile.inc b/src/mainboard/intel/adlrvp/spd/Makefile.inc
index 10ce42ef4c..6e6709fd7c 100644
--- a/src/mainboard/intel/adlrvp/spd/Makefile.inc
+++ b/src/mainboard/intel/adlrvp/spd/Makefile.inc
@@ -4,3 +4,7 @@ SPD_SOURCES = adlrvp_lp4 # 0b000
SPD_SOURCES += empty # 0b001
SPD_SOURCES += empty # 0b002
SPD_SOURCES += adlrvp_lp5 # 0b003
+SPD_SOURCES += empty # 0b004
+SPD_SOURCES += empty # 0b005
+SPD_SOURCES += empty # 0b006
+SPD_SOURCES += adlrvp_lp5 # 0b007