summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/volteer/mainboard.c7
-rw-r--r--src/mainboard/google/volteer/variants/baseboard/include/baseboard/variants.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/mainboard.c b/src/mainboard/google/volteer/mainboard.c
index 4d65245066..e8b3466e79 100644
--- a/src/mainboard/google/volteer/mainboard.c
+++ b/src/mainboard/google/volteer/mainboard.c
@@ -78,6 +78,11 @@ void __weak variant_devtree_update(void)
{
}
+void __weak variant_ramstage_init(void)
+{
+ /* Default weak implementation */
+}
+
static void add_fw_config_oem_string(const struct fw_config *config, void *arg)
{
struct smbios_type11 *t;
@@ -99,6 +104,8 @@ static void mainboard_enable(struct device *dev)
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator;
dev->ops->get_smbios_strings = mainboard_smbios_strings;
+
+ variant_ramstage_init();
}
void mainboard_update_soc_chip_config(struct soc_intel_tigerlake_config *cfg)
diff --git a/src/mainboard/google/volteer/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/volteer/variants/baseboard/include/baseboard/variants.h
index 2431c59cdc..3d12c85561 100644
--- a/src/mainboard/google/volteer/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/volteer/variants/baseboard/include/baseboard/variants.h
@@ -24,4 +24,7 @@ int variant_memory_sku(void);
/* Modify devictree settings during ramstage. */
void variant_devtree_update(void);
+/* Perform variant specific initialization early on in ramstage */
+void variant_ramstage_init(void);
+
#endif /* __BASEBOARD_VARIANTS_H__ */