From e5c2babcc0d162e927a4111ebe2433fe226497ab Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sun, 29 Sep 2024 18:45:45 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/84588 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Jayvik Desai Reviewed-by: Marshall Dawson Reviewed-by: Angel Pons Reviewed-by: Arthur Heymans --- src/mainboard/amd/bilby/mainboard.c | 1 + src/mainboard/amd/birman/update_devicetree_phoenix_opensil.c | 1 + src/mainboard/amd/mandolin/mainboard.c | 1 + src/mainboard/google/brox/variants/baseboard/brox/ramstage.c | 1 + src/mainboard/google/brya/variants/baseboard/brask/ramstage.c | 1 + src/mainboard/google/brya/variants/baseboard/brya/ramstage.c | 1 + src/mainboard/google/brya/variants/baseboard/hades/ramstage.c | 1 + src/mainboard/google/dedede/mainboard.c | 1 + src/mainboard/google/dedede/variants/awasuki/ramstage.c | 1 + src/mainboard/google/dedede/variants/baseboard/ramstage.c | 1 + src/mainboard/google/dedede/variants/drawcia/ramstage.c | 1 + src/mainboard/google/dedede/variants/kracko/ramstage.c | 1 + src/mainboard/google/dedede/variants/lantis/ramstage.c | 1 + src/mainboard/google/dedede/variants/pirika/ramstage.c | 1 + src/mainboard/google/dedede/variants/sasukette/ramstage.c | 1 + src/mainboard/google/fizz/mainboard.c | 1 + src/mainboard/google/hatch/variants/akemi/variant.c | 1 + src/mainboard/google/hatch/variants/kindred/variant.c | 1 + src/mainboard/google/poppy/variants/atlas/mainboard.c | 1 + src/mainboard/google/poppy/variants/nami/mainboard.c | 1 + src/mainboard/google/poppy/variants/nautilus/mainboard.c | 1 + src/mainboard/google/poppy/variants/nocturne/mainboard.c | 1 + src/mainboard/google/puff/variants/baseboard/mainboard.c | 1 + src/mainboard/google/rex/variants/baseboard/ovis/ramstage.c | 1 + src/mainboard/google/rex/variants/deku/ramstage.c | 1 + src/mainboard/google/zork/variants/baseboard/ramstage_common.c | 1 + src/mainboard/google/zork/variants/dalboz/variant.c | 1 + src/mainboard/google/zork/variants/shuboz/variant.c | 1 + src/mainboard/google/zork/variants/vilboz/variant.c | 1 + src/mainboard/intel/adlrvp/ramstage.c | 1 + src/mainboard/intel/avenuecity_crb/romstage.c | 1 + src/mainboard/intel/beechnutcity_crb/romstage.c | 1 + src/mainboard/lattepanda/mu/ramstage.c | 1 + src/mainboard/ocp/deltalake/romstage.c | 1 + src/mainboard/prodrive/hermes/mainboard.c | 1 + src/mainboard/starlabs/byte_adl/variants/mk_ii/devtree.c | 1 + src/mainboard/starlabs/lite/devtree.c | 1 + src/mainboard/starlabs/starbook/variants/adl/devtree.c | 1 + src/mainboard/starlabs/starbook/variants/cml/devtree.c | 1 + src/mainboard/starlabs/starbook/variants/kbl/devtree.c | 1 + src/mainboard/starlabs/starbook/variants/rpl/devtree.c | 1 + src/mainboard/starlabs/starbook/variants/tgl/devtree.c | 1 + src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c | 1 + 43 files changed, 43 insertions(+) (limited to 'src') 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 #include #include +#include #include #include #include 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 #include #include +#include #include #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 #include #include +#include #include #include #include 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 #include #include +#include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include 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 #include #include +#include #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 #include #include +#include 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include #include #include 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include #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 #include #include +#include #include #include #include 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 #include #include +#include #include #include 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 #include #include +#include /* 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 #include #include +#include #include #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 #include #include +#include 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 #include #include +#include /* * 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 #include #include +#include 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 #include #include +#include #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 #include #include +#include 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 #include #include +#include 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 #include #include +#include #include #include #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 #include #include +#include #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 #include #include +#include #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 #include #include +#include #include #include #include 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 #include #include +#include #include #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 #include #include +#include #include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include 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 #include #include +#include #include #include -- cgit v1.2.3