summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorMario Scheithauer <mario.scheithauer@siemens.com>2021-08-24 12:43:45 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-10-11 12:50:10 +0000
commitd7f45ea87b996d5aec76fa550b1b05fb89ae276d (patch)
treed2a131fe08904ab5f179ca11bc6a614f57746e13 /src/mainboard
parent93b537f907ddfd080fa90f7bdd9eb3f66d030be5 (diff)
mb/siemens/mc_ehl: Add variant_mainboard_final()
In upcoming patches, we need mainboard specific adjustments. Change-Id: Icf9d829b19b2d26a39ad34be4658064083e9da6d Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58171 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/siemens/mc_ehl/mainboard.c8
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/baseboard/include/baseboard/variants.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_ehl/mainboard.c b/src/mainboard/siemens/mc_ehl/mainboard.c
index d3475678bc..e64dbda54f 100644
--- a/src/mainboard/siemens/mc_ehl/mainboard.c
+++ b/src/mainboard/siemens/mc_ehl/mainboard.c
@@ -127,6 +127,9 @@ static void mainboard_final(void *chip_info)
{
struct device *dev;
+ /* Do board specific things */
+ variant_mainboard_final();
+
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) {
/* Set Master Enable for on-board PCI devices if allowed. */
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
@@ -139,6 +142,11 @@ static void mainboard_final(void *chip_info)
}
}
+/* The following function performs board specific things. */
+void __weak variant_mainboard_final(void)
+{
+}
+
struct chip_operations mainboard_ops = {
.init = mainboard_init,
.final = mainboard_final
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 bf057651d3..0893d99e03 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,4 +15,7 @@ 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);
+/* The following function performs board specific things. */
+void variant_mainboard_final(void);
+
#endif /*__BASEBOARD_VARIANTS_H__ */