diff options
-rw-r--r-- | src/mainboard/siemens/mc_ehl/romstage_fsp_params.c | 7 | ||||
-rw-r--r-- | src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c b/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c index 98c93489ea..28fca2da10 100644 --- a/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c +++ b/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c @@ -10,6 +10,11 @@ #include <string.h> #include <types.h> +bool __weak half_populated(void) +{ + return false; +} + void mainboard_memory_init_params(FSPM_UPD *memupd) { static struct spd_info spd_info; @@ -29,7 +34,7 @@ void mainboard_memory_init_params(FSPM_UPD *memupd) die("SPD in HW-Info not valid!\n"); } /* Initialize variant specific configurations */ - memcfg_init(&memupd->FspmConfig, board_cfg, &spd_info, false); + memcfg_init(&memupd->FspmConfig, board_cfg, &spd_info, half_populated()); /* Enable Row-Hammer prevention */ memupd->FspmConfig.RhPrevention = 1; diff --git a/src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h b/src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h index 0893d99e03..901047991d 100644 --- a/src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h @@ -15,6 +15,9 @@ const struct pad_config *variant_early_gpio_table(size_t *num); /* This function returns SPD related FSP-M mainboard configs */ const struct mb_cfg *variant_memcfg_config(void); +/* This function can select half-populate DRAM */ +bool half_populated(void); + /* The following function performs board specific things. */ void variant_mainboard_final(void); |