From 9a30c7289fd0d95655e368100ed444848d46e85d Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 7 Aug 2018 12:04:21 -0600 Subject: soc/intel/apollolake: add new dimm info saving API The current call for saving dimm info passed the lpddr4_cfg and memory sku id. In order to prepare decoupling the part number from lpddr4_cfg provide a new API, save_lpddr4_dimm_info_part_num(), which explicitly takes the part number. The previous API now uses the new one internally. BUG=b:112203105 Change-Id: Ieadf452b6daa3231a0c5e3be61b0603b40d0fff2 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/27944 Tested-by: build bot (Jenkins) Reviewed-by: Justin TerAvest Reviewed-by: Furquan Shaikh --- src/soc/intel/apollolake/include/soc/meminit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/soc/intel/apollolake/include') diff --git a/src/soc/intel/apollolake/include/soc/meminit.h b/src/soc/intel/apollolake/include/soc/meminit.h index 31645a4dc4..d75a4873b0 100644 --- a/src/soc/intel/apollolake/include/soc/meminit.h +++ b/src/soc/intel/apollolake/include/soc/meminit.h @@ -131,7 +131,11 @@ struct lpddr4_cfg { */ void meminit_lpddr4_by_sku(FSP_M_CONFIG *cfg, const struct lpddr4_cfg *lpcfg, size_t sku_id); +/* One of the two below needs to be called. If one is obtaining the part + * number out of band from the lpddr_cfg then the part_num variant will + * suffice. */ void save_lpddr4_dimm_info(const struct lpddr4_cfg *lpcfg, size_t mem_sku); +void save_lpddr4_dimm_info_part_num(const char *dram_part_num); /* Retrieve the amount of memory configured in the system in MiB. It's only * valid during romstage. */ -- cgit v1.2.3