summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-09-29 18:45:45 -0600
committerMartin L Roth <gaumless@gmail.com>2024-10-07 20:37:06 +0000
commite5c2babcc0d162e927a4111ebe2433fe226497ab (patch)
treeedf6e91a0fbc12db96fd47ba65c514f5643c7f45
parente7f47412a82edd5c6a87847e5e5c0ead9a6aa96d (diff)
mb/*: Explicitly include static.h for config_of_soc
As per commit 865173153760 ("sconfig: Move config_of_soc from device.h to static.h"), sources that require access to the devicetree should directly include static.h so that it can be removed from device.h, eliminating unnecessary dependencies on static.h for files that only need the types and function declarations in device.h. Change-Id: Ia793666fda47678764fd33891fddb4aecf207bd4 Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84588 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Jayvik Desai <jayvik@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/mainboard/amd/bilby/mainboard.c1
-rw-r--r--src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c1
-rw-r--r--src/mainboard/amd/mandolin/mainboard.c1
-rw-r--r--src/mainboard/google/brox/variants/baseboard/brox/ramstage.c1
-rw-r--r--src/mainboard/google/brya/variants/baseboard/brask/ramstage.c1
-rw-r--r--src/mainboard/google/brya/variants/baseboard/brya/ramstage.c1
-rw-r--r--src/mainboard/google/brya/variants/baseboard/hades/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/mainboard.c1
-rw-r--r--src/mainboard/google/dedede/variants/awasuki/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/kracko/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/lantis/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/pirika/ramstage.c1
-rw-r--r--src/mainboard/google/dedede/variants/sasukette/ramstage.c1
-rw-r--r--src/mainboard/google/fizz/mainboard.c1
-rw-r--r--src/mainboard/google/hatch/variants/akemi/variant.c1
-rw-r--r--src/mainboard/google/hatch/variants/kindred/variant.c1
-rw-r--r--src/mainboard/google/poppy/variants/atlas/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nami/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nautilus/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nocturne/mainboard.c1
-rw-r--r--src/mainboard/google/puff/variants/baseboard/mainboard.c1
-rw-r--r--src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c1
-rw-r--r--src/mainboard/google/rex/variants/deku/ramstage.c1
-rw-r--r--src/mainboard/google/zork/variants/baseboard/ramstage_common.c1
-rw-r--r--src/mainboard/google/zork/variants/dalboz/variant.c1
-rw-r--r--src/mainboard/google/zork/variants/shuboz/variant.c1
-rw-r--r--src/mainboard/google/zork/variants/vilboz/variant.c1
-rw-r--r--src/mainboard/intel/adlrvp/ramstage.c1
-rw-r--r--src/mainboard/intel/avenuecity_crb/romstage.c1
-rw-r--r--src/mainboard/intel/beechnutcity_crb/romstage.c1
-rw-r--r--src/mainboard/lattepanda/mu/ramstage.c1
-rw-r--r--src/mainboard/ocp/deltalake/romstage.c1
-rw-r--r--src/mainboard/prodrive/hermes/mainboard.c1
-rw-r--r--src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c1
-rw-r--r--src/mainboard/starlabs/lite/devtree.c1
-rw-r--r--src/mainboard/starlabs/starbook/variants/adl/devtree.c1
-rw-r--r--src/mainboard/starlabs/starbook/variants/cml/devtree.c1
-rw-r--r--src/mainboard/starlabs/starbook/variants/kbl/devtree.c1
-rw-r--r--src/mainboard/starlabs/starbook/variants/rpl/devtree.c1
-rw-r--r--src/mainboard/starlabs/starbook/variants/tgl/devtree.c1
-rw-r--r--src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c1
43 files changed, 43 insertions, 0 deletions
diff --git a/src/mainboard/amd/bilby/mainboard.c b/src/mainboard/amd/bilby/mainboard.c
index 7af66e609b..11d3a6089f 100644
--- a/src/mainboard/amd/bilby/mainboard.c
+++ b/src/mainboard/amd/bilby/mainboard.c
@@ -10,6 +10,7 @@
#include <soc/southbridge.h>
#include <soc/pci_devs.h>
#include <soc/platform_descriptors.h>
+#include <static.h>
#include <types.h>
#include <commonlib/helpers.h>
#include <soc/amd/picasso/chip.h>
diff --git a/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c b/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
index f0060b8a63..2640e7453a 100644
--- a/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
+++ b/src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c
@@ -3,6 +3,7 @@
#include <device/device.h>
#include <soc/amd/phoenix/chip.h>
#include <soc/soc_util.h>
+#include <static.h>
#include <vendorcode/amd/opensil/chip/mpio/chip.h>
#include "display_card_type.h"
#include "update_devicetree.h"
diff --git a/src/mainboard/amd/mandolin/mainboard.c b/src/mainboard/amd/mandolin/mainboard.c
index 7975c10c8c..c044a81c89 100644
--- a/src/mainboard/amd/mandolin/mainboard.c
+++ b/src/mainboard/amd/mandolin/mainboard.c
@@ -8,6 +8,7 @@
#include <soc/cpu.h>
#include <soc/southbridge.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <types.h>
#include <commonlib/helpers.h>
#include <soc/amd/picasso/chip.h>
diff --git a/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c b/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c
index 3cca3441db..80c8499e4e 100644
--- a/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c
+++ b/src/mainboard/google/brox/variants/baseboard/brox/ramstage.c
@@ -8,6 +8,7 @@
#include <ec/google/chromeec/ec.h>
#include <intelblocks/power_limit.h>
#include <soc/pci_devs.h>
+#include <static.h>
WEAK_DEV_PTR(dptf_policy);
diff --git a/src/mainboard/google/brya/variants/baseboard/brask/ramstage.c b/src/mainboard/google/brya/variants/baseboard/brask/ramstage.c
index 4d30b8e237..6a4eedf890 100644
--- a/src/mainboard/google/brya/variants/baseboard/brask/ramstage.c
+++ b/src/mainboard/google/brya/variants/baseboard/brask/ramstage.c
@@ -6,6 +6,7 @@
#include <device/pci_ops.h>
#include <ec/google/chromeec/ec.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <drivers/intel/dptf/chip.h>
#include <intelblocks/power_limit.h>
diff --git a/src/mainboard/google/brya/variants/baseboard/brya/ramstage.c b/src/mainboard/google/brya/variants/baseboard/brya/ramstage.c
index 9ebe0d709d..7316a2f68b 100644
--- a/src/mainboard/google/brya/variants/baseboard/brya/ramstage.c
+++ b/src/mainboard/google/brya/variants/baseboard/brya/ramstage.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <drivers/intel/dptf/chip.h>
#include <intelblocks/power_limit.h>
diff --git a/src/mainboard/google/brya/variants/baseboard/hades/ramstage.c b/src/mainboard/google/brya/variants/baseboard/hades/ramstage.c
index 7862dfe246..b33cae1590 100644
--- a/src/mainboard/google/brya/variants/baseboard/hades/ramstage.c
+++ b/src/mainboard/google/brya/variants/baseboard/hades/ramstage.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <drivers/intel/dptf/chip.h>
#include <intelblocks/power_limit.h>
diff --git a/src/mainboard/google/dedede/mainboard.c b/src/mainboard/google/dedede/mainboard.c
index aae4155f3d..a668412003 100644
--- a/src/mainboard/google/dedede/mainboard.c
+++ b/src/mainboard/google/dedede/mainboard.c
@@ -11,6 +11,7 @@
#include <ec/ec.h>
#include <security/tpm/tss.h>
#include <soc/soc_chip.h>
+#include <static.h>
#include <timer.h>
#include <vb2_api.h>
diff --git a/src/mainboard/google/dedede/variants/awasuki/ramstage.c b/src/mainboard/google/dedede/variants/awasuki/ramstage.c
index 418826c2a4..a6a2fd1ca4 100644
--- a/src/mainboard/google/dedede/variants/awasuki/ramstage.c
+++ b/src/mainboard/google/dedede/variants/awasuki/ramstage.c
@@ -4,6 +4,7 @@
#include <fw_config.h>
#include <soc/soc_chip.h>
#include <soc/gpio.h>
+#include <static.h>
static const struct pad_config ts_disable_pad[] = {
/* A11 : TOUCH_RPT_EN */
diff --git a/src/mainboard/google/dedede/variants/baseboard/ramstage.c b/src/mainboard/google/dedede/variants/baseboard/ramstage.c
index d43d08f856..f5a8f98d62 100644
--- a/src/mainboard/google/dedede/variants/baseboard/ramstage.c
+++ b/src/mainboard/google/dedede/variants/baseboard/ramstage.c
@@ -13,6 +13,7 @@
#include <chip.h>
#include <drivers/intel/dptf/chip.h>
#include <soc/pci_devs.h>
+#include <static.h>
#define SET_PSYSPL2(e, w) ((e) * (w) / 100)
#define MICROWATTS_TO_WATTS 1000000
diff --git a/src/mainboard/google/dedede/variants/drawcia/ramstage.c b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
index aed160e12d..06ff4b56dc 100644
--- a/src/mainboard/google/dedede/variants/drawcia/ramstage.c
+++ b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
@@ -6,6 +6,7 @@
#include <drivers/usb/acpi/chip.h>
#include <fw_config.h>
#include <soc/soc_chip.h>
+#include <static.h>
static void ext_vr_update(void)
{
diff --git a/src/mainboard/google/dedede/variants/kracko/ramstage.c b/src/mainboard/google/dedede/variants/kracko/ramstage.c
index afd218e637..16b7962077 100644
--- a/src/mainboard/google/dedede/variants/kracko/ramstage.c
+++ b/src/mainboard/google/dedede/variants/kracko/ramstage.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <fw_config.h>
#include <soc/soc_chip.h>
+#include <static.h>
static void ext_vr_update(void)
{
diff --git a/src/mainboard/google/dedede/variants/lantis/ramstage.c b/src/mainboard/google/dedede/variants/lantis/ramstage.c
index 255e58557e..8999b5daa5 100644
--- a/src/mainboard/google/dedede/variants/lantis/ramstage.c
+++ b/src/mainboard/google/dedede/variants/lantis/ramstage.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <fw_config.h>
#include <soc/soc_chip.h>
+#include <static.h>
static void ext_vr_update(void)
{
diff --git a/src/mainboard/google/dedede/variants/pirika/ramstage.c b/src/mainboard/google/dedede/variants/pirika/ramstage.c
index 906358e767..2c64a14b6d 100644
--- a/src/mainboard/google/dedede/variants/pirika/ramstage.c
+++ b/src/mainboard/google/dedede/variants/pirika/ramstage.c
@@ -2,6 +2,7 @@
#include <baseboard/variants.h>
#include <fw_config.h>
#include <soc/soc_chip.h>
+#include <static.h>
static void ext_vr_update(void)
{
diff --git a/src/mainboard/google/dedede/variants/sasukette/ramstage.c b/src/mainboard/google/dedede/variants/sasukette/ramstage.c
index 580e6bf018..54f2fa9d04 100644
--- a/src/mainboard/google/dedede/variants/sasukette/ramstage.c
+++ b/src/mainboard/google/dedede/variants/sasukette/ramstage.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <fw_config.h>
#include <soc/soc_chip.h>
+#include <static.h>
static void ext_vr_update(void)
{
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c
index 795d96ef9b..e908b9e635 100644
--- a/src/mainboard/google/fizz/mainboard.c
+++ b/src/mainboard/google/fizz/mainboard.c
@@ -14,6 +14,7 @@
#include <smbios.h>
#include <soc/pci_devs.h>
#include <soc/nhlt.h>
+#include <static.h>
#include <stdio.h>
#include <timer.h>
diff --git a/src/mainboard/google/hatch/variants/akemi/variant.c b/src/mainboard/google/hatch/variants/akemi/variant.c
index cc38362f62..457e0d53fa 100644
--- a/src/mainboard/google/hatch/variants/akemi/variant.c
+++ b/src/mainboard/google/hatch/variants/akemi/variant.c
@@ -4,6 +4,7 @@
#include <chip.h>
#include <soc/pci_devs.h>
#include <ec/google/chromeec/ec.h>
+#include <static.h>
void variant_devtree_update(void)
{
diff --git a/src/mainboard/google/hatch/variants/kindred/variant.c b/src/mainboard/google/hatch/variants/kindred/variant.c
index 7e63526562..cf23608f67 100644
--- a/src/mainboard/google/hatch/variants/kindred/variant.c
+++ b/src/mainboard/google/hatch/variants/kindred/variant.c
@@ -6,6 +6,7 @@
#include <ec/google/chromeec/ec.h>
#include <sar.h>
#include <drivers/intel/gma/opregion.h>
+#include <static.h>
void variant_devtree_update(void)
{
diff --git a/src/mainboard/google/poppy/variants/atlas/mainboard.c b/src/mainboard/google/poppy/variants/atlas/mainboard.c
index b439e30873..ac9e7db1ac 100644
--- a/src/mainboard/google/poppy/variants/atlas/mainboard.c
+++ b/src/mainboard/google/poppy/variants/atlas/mainboard.c
@@ -6,6 +6,7 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <intelblocks/power_limit.h>
+#include <static.h>
#define PL2_AML 18
#define PL2_KBL 15
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index 7bdfb5e177..c5ee5b973c 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -13,6 +13,7 @@
#include <intelblocks/power_limit.h>
#include <smbios.h>
#include <soc/ramstage.h>
+#include <static.h>
#include <stdio.h>
#include <variant/sku.h>
#include <gpio.h>
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index b77513ba56..02f861f632 100644
--- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
@@ -6,6 +6,7 @@
#include <device/device.h>
#include <device/pci_ops.h>
#include <smbios.h>
+#include <static.h>
#include <stdio.h>
#include <variant/sku.h>
diff --git a/src/mainboard/google/poppy/variants/nocturne/mainboard.c b/src/mainboard/google/poppy/variants/nocturne/mainboard.c
index eff5cf5e17..d25fbac11f 100644
--- a/src/mainboard/google/poppy/variants/nocturne/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nocturne/mainboard.c
@@ -6,6 +6,7 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <intelblocks/power_limit.h>
+#include <static.h>
/* PL2 limit in watts for AML and KBL */
#define PL2_AML 18
diff --git a/src/mainboard/google/puff/variants/baseboard/mainboard.c b/src/mainboard/google/puff/variants/baseboard/mainboard.c
index e0c344064c..b455c6df0c 100644
--- a/src/mainboard/google/puff/variants/baseboard/mainboard.c
+++ b/src/mainboard/google/puff/variants/baseboard/mainboard.c
@@ -12,6 +12,7 @@
#include <gpio.h>
#include <intelblocks/power_limit.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <timer.h>
#define GPIO_HDMI_HPD GPP_E13
diff --git a/src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c b/src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c
index 2798be6c7b..e23fc9ad5a 100644
--- a/src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c
+++ b/src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c
@@ -6,6 +6,7 @@
#include <device/pci_ops.h>
#include <intelblocks/power_limit.h>
#include <soc/pci_devs.h>
+#include <static.h>
struct soc_power_limits_config *variant_get_soc_power_limit_config(void)
{
diff --git a/src/mainboard/google/rex/variants/deku/ramstage.c b/src/mainboard/google/rex/variants/deku/ramstage.c
index 7cb324dd67..0cfcae19f5 100644
--- a/src/mainboard/google/rex/variants/deku/ramstage.c
+++ b/src/mainboard/google/rex/variants/deku/ramstage.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <chip.h>
#include <intelblocks/power_limit.h>
+#include <static.h>
/*
* SKU_ID, TDP (Watts), pl1_min (milliWatts), pl1_max (milliWatts),
diff --git a/src/mainboard/google/zork/variants/baseboard/ramstage_common.c b/src/mainboard/google/zork/variants/baseboard/ramstage_common.c
index 44acef959d..311daa442f 100644
--- a/src/mainboard/google/zork/variants/baseboard/ramstage_common.c
+++ b/src/mainboard/google/zork/variants/baseboard/ramstage_common.c
@@ -12,6 +12,7 @@
#include <gpio.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
+#include <static.h>
extern struct chip_operations drivers_i2c_generic_ops;
extern struct chip_operations drivers_i2c_hid_ops;
diff --git a/src/mainboard/google/zork/variants/dalboz/variant.c b/src/mainboard/google/zork/variants/dalboz/variant.c
index 6260cfc02e..e726a7eb84 100644
--- a/src/mainboard/google/zork/variants/dalboz/variant.c
+++ b/src/mainboard/google/zork/variants/dalboz/variant.c
@@ -4,6 +4,7 @@
#include <device/device.h>
#include <ec/google/chromeec/ec.h>
#include <ec/google/chromeec/i2c_tunnel/chip.h>
+#include <static.h>
#define DALBOZ_DB_HDMI 0x1
diff --git a/src/mainboard/google/zork/variants/shuboz/variant.c b/src/mainboard/google/zork/variants/shuboz/variant.c
index b0a6b7ea02..2a7bd4f8c4 100644
--- a/src/mainboard/google/zork/variants/shuboz/variant.c
+++ b/src/mainboard/google/zork/variants/shuboz/variant.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <soc/amd/picasso/chip.h>
#include <soc/pci_devs.h>
+#include <static.h>
uint32_t usb_oc_map_override[USB_PORT_COUNT] = {
USB_OC_PIN_0,
diff --git a/src/mainboard/google/zork/variants/vilboz/variant.c b/src/mainboard/google/zork/variants/vilboz/variant.c
index ddfce69aaa..00e72cb6f6 100644
--- a/src/mainboard/google/zork/variants/vilboz/variant.c
+++ b/src/mainboard/google/zork/variants/vilboz/variant.c
@@ -5,6 +5,7 @@
#include <fw_config.h>
#include <sar.h>
#include <soc/amd/picasso/chip.h>
+#include <static.h>
static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
{ // DDI0, DP0, eDP
diff --git a/src/mainboard/intel/adlrvp/ramstage.c b/src/mainboard/intel/adlrvp/ramstage.c
index 3bdc230821..fd8e20332b 100644
--- a/src/mainboard/intel/adlrvp/ramstage.c
+++ b/src/mainboard/intel/adlrvp/ramstage.c
@@ -8,6 +8,7 @@
#include <soc/gpio_soc_defs.h>
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
+#include <static.h>
#include <string.h>
#include <drivers/intel/dptf/chip.h>
#include "board_id.h"
diff --git a/src/mainboard/intel/avenuecity_crb/romstage.c b/src/mainboard/intel/avenuecity_crb/romstage.c
index 446d4e2be7..ef91b39f93 100644
--- a/src/mainboard/intel/avenuecity_crb/romstage.c
+++ b/src/mainboard/intel/avenuecity_crb/romstage.c
@@ -10,6 +10,7 @@
#include <soc/dimm_slot.h>
#include <soc/iio.h>
#include <soc/romstage.h>
+#include <static.h>
#include "chip.h"
diff --git a/src/mainboard/intel/beechnutcity_crb/romstage.c b/src/mainboard/intel/beechnutcity_crb/romstage.c
index 446d4e2be7..ef91b39f93 100644
--- a/src/mainboard/intel/beechnutcity_crb/romstage.c
+++ b/src/mainboard/intel/beechnutcity_crb/romstage.c
@@ -10,6 +10,7 @@
#include <soc/dimm_slot.h>
#include <soc/iio.h>
#include <soc/romstage.h>
+#include <static.h>
#include "chip.h"
diff --git a/src/mainboard/lattepanda/mu/ramstage.c b/src/mainboard/lattepanda/mu/ramstage.c
index 952524e64e..e10b179226 100644
--- a/src/mainboard/lattepanda/mu/ramstage.c
+++ b/src/mainboard/lattepanda/mu/ramstage.c
@@ -8,6 +8,7 @@
#include <soc/gpio_soc_defs.h>
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
+#include <static.h>
#include <string.h>
#include <drivers/intel/dptf/chip.h>
#include <intelblocks/power_limit.h>
diff --git a/src/mainboard/ocp/deltalake/romstage.c b/src/mainboard/ocp/deltalake/romstage.c
index d20c54ce90..728b931464 100644
--- a/src/mainboard/ocp/deltalake/romstage.c
+++ b/src/mainboard/ocp/deltalake/romstage.c
@@ -7,6 +7,7 @@
#include <fsp/api.h>
#include <FspmUpd.h>
#include <soc/romstage.h>
+#include <static.h>
#include <FspmUpdHelper.h>
#include "chip.h"
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c
index 6d0da8d411..4ae84542e3 100644
--- a/src/mainboard/prodrive/hermes/mainboard.c
+++ b/src/mainboard/prodrive/hermes/mainboard.c
@@ -16,6 +16,7 @@
#include <intelblocks/pmclib.h>
#include <smbios.h>
#include <soc/pm.h>
+#include <static.h>
#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c b/src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c
index be9825e3b2..86cedf12c3 100644
--- a/src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c
+++ b/src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/lite/devtree.c b/src/mainboard/starlabs/lite/devtree.c
index 1f6a92211c..9df207e668 100644
--- a/src/mainboard/starlabs/lite/devtree.c
+++ b/src/mainboard/starlabs/lite/devtree.c
@@ -4,6 +4,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starbook/variants/adl/devtree.c b/src/mainboard/starlabs/starbook/variants/adl/devtree.c
index fb961e20bd..e36effbc9f 100644
--- a/src/mainboard/starlabs/starbook/variants/adl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/adl/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starbook/variants/cml/devtree.c b/src/mainboard/starlabs/starbook/variants/cml/devtree.c
index 100a85c274..c107a1028b 100644
--- a/src/mainboard/starlabs/starbook/variants/cml/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/cml/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
index 5ee3a3ef8d..f8820d3b18 100644
--- a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
index a7b0157bb8..4c1f3cada9 100644
--- a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
index 8d206fa38c..59959e2008 100644
--- a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>
diff --git a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
index 2599a49f15..7184cdbc4c 100644
--- a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
+++ b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
+#include <static.h>
#include <types.h>
#include <variants.h>