summaryrefslogtreecommitdiff
path: root/src/mainboard/google/octopus
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/octopus')
-rw-r--r--src/mainboard/google/octopus/mainboard.c13
-rw-r--r--src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h4
2 files changed, 17 insertions, 0 deletions
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 <arch/acpi.h>
#include <baseboard/variants.h>
#include <boardid.h>
+#include <compiler.h>
#include <console/console.h>
#include <device/device.h>
#include <ec/google/chromeec/ec.h>
#include <ec/ec.h>
#include <nhlt.h>
#include <smbios.h>
+#include <soc/cpu.h>
#include <soc/gpio.h>
#include <soc/nhlt.h>
#include <string.h>
@@ -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 */