diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/hatch/ramstage.c | 6 | ||||
-rw-r--r-- | src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/hatch/ramstage.c b/src/mainboard/google/hatch/ramstage.c index 3436007252..04e1bc10ea 100644 --- a/src/mainboard/google/hatch/ramstage.c +++ b/src/mainboard/google/hatch/ramstage.c @@ -28,6 +28,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params) size_t base_gpios; size_t override_gpios; + variant_devtree_update(); base_table = base_gpio_table(&base_gpios); override_table = override_gpio_table(&override_gpios); @@ -37,6 +38,11 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params) override_gpios); } +void __weak variant_devtree_update(void) +{ + /* Override dev tree settings per board */ +} + static void mainboard_enable(struct device *dev) { mainboard_ec_init(); diff --git a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h index 864d140f0e..4cb11945ca 100644 --- a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h @@ -43,4 +43,7 @@ const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num); /* Return ChromeOS gpio table and fill in number of entries. */ const struct cros_gpio *variant_cros_gpios(size_t *num); +/* Modify devictree settings during ramstage. */ +void variant_devtree_update(void); + #endif /* BASEBOARD_VARIANTS_H */ |