aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl4/gpio.c1
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl4/memory.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/gpio.c b/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/gpio.c
index 9f1c77f20a..4919ac7433 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/gpio.c
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/gpio.c
@@ -118,6 +118,7 @@ static const struct pad_config gpio_table[] = {
/* Early pad configuration in bootblock */
static const struct pad_config early_gpio_table[] = {
+ PAD_CFG_GPI(GPP_B5, NONE, DEEP), /* DRAM population */
PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), /* SMB_CLK */
PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1), /* SMB_DATA */
PAD_CFG_NF(GPP_C2, NONE, DEEP, NF2), /* SMB_ALERT_N */
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/memory.c b/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/memory.c
index 7b7dad1129..dc0f073201 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/memory.c
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl4/memory.c
@@ -57,3 +57,11 @@ const struct mb_cfg *variant_memcfg_config(void)
{
return &mc_ehl_lpddr4x_memcfg_cfg;
}
+
+bool half_populated(void)
+{
+ /* There are two different memory expansion variants of this mainboard.
+ The GPIO GPP_B5 indicates whether the mainboard is equipped with half- or
+ full-populated DRAM. */
+ return gpio_get(GPP_B5);
+}