diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index eda44bad11..fa2075bc3d 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -16,12 +16,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -110,3 +112,14 @@ const char *smbios_mainboard_sku(void) return sku_str; } + +void __weak variant_update_devtree(struct device *dev) +{ + /* Place holder for common updates. */ +} + +void mainboard_devtree_update(struct device *dev) +{ + /* Defer to variant for board-specific updates. */ + variant_update_devtree(dev); +} diff --git a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h index 87ab7fd2a0..c9d7d7bf85 100644 --- a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h @@ -41,4 +41,8 @@ const struct cros_gpio *variant_cros_gpios(size_t *num); struct nhlt; void variant_nhlt_init(struct nhlt *nhlt); +/* Modify devictree settings during ramstage. */ +struct device; +void variant_update_devtree(struct device *dev); + #endif /* BASEBOARD_VARIANTS_H */