summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/dedede/mainboard.c7
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/mainboard.c b/src/mainboard/google/dedede/mainboard.c
index 26afb6974b..6d544b58ab 100644
--- a/src/mainboard/google/dedede/mainboard.c
+++ b/src/mainboard/google/dedede/mainboard.c
@@ -40,10 +40,17 @@ static void mainboard_init(void *chip_info)
gpio_configure_pads_with_override(base_pads, base_num,
override_pads, override_num);
+ variant_devtree_update();
+
if (CONFIG(BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50))
mainboard_update_soc_chip_config();
}
+void __weak variant_devtree_update(void)
+{
+ /* Override dev tree settings per board */
+}
+
static void mainboard_dev_init(struct device *dev)
{
mainboard_ec_init();
diff --git a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
index e7bfd868aa..a3dcd919d1 100644
--- a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h
@@ -39,4 +39,7 @@ bool variant_mem_is_half_populated(void);
/* Allow each variants to customize SMI sleep flow. */
void variant_smi_sleep(u8 slp_typ);
+/* Modify devictree settings during ramstage. */
+void variant_devtree_update(void);
+
#endif /*__BASEBOARD_VARIANTS_H__ */