From 6ca36baebc3ec2d3c59d2fd2536b6a5d81c23241 Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sun, 29 Sep 2024 18:45:45 -0600 Subject: soc/intel/adl to jsl: 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: I03e42689487c6d63436d9c2945558073aae87cd1 Signed-off-by: Nicholas Chin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84586 Reviewed-by: Jayvik Desai Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/soc/intel/jasperlake/acpi.c | 1 + src/soc/intel/jasperlake/chip.c | 1 + src/soc/intel/jasperlake/cpu.c | 1 + src/soc/intel/jasperlake/espi.c | 1 + src/soc/intel/jasperlake/finalize.c | 1 + src/soc/intel/jasperlake/fsp_params.c | 1 + src/soc/intel/jasperlake/pmc.c | 1 + src/soc/intel/jasperlake/pmutil.c | 1 + src/soc/intel/jasperlake/romstage/fsp_params.c | 1 + src/soc/intel/jasperlake/systemagent.c | 1 + src/soc/intel/jasperlake/xhci.c | 1 + 11 files changed, 11 insertions(+) (limited to 'src/soc/intel/jasperlake') diff --git a/src/soc/intel/jasperlake/acpi.c b/src/soc/intel/jasperlake/acpi.c index 5e432a95de..d81c6b8a3c 100644 --- a/src/soc/intel/jasperlake/acpi.c +++ b/src/soc/intel/jasperlake/acpi.c @@ -19,6 +19,7 @@ #include #include #include +#include /* * List of supported C-states in this processor. diff --git a/src/soc/intel/jasperlake/chip.c b/src/soc/intel/jasperlake/chip.c index 6b4c74c416..e1f6099127 100644 --- a/src/soc/intel/jasperlake/chip.c +++ b/src/soc/intel/jasperlake/chip.c @@ -16,6 +16,7 @@ #include #include #include +#include #if CONFIG(HAVE_ACPI_TABLES) const char *soc_acpi_name(const struct device *dev) diff --git a/src/soc/intel/jasperlake/cpu.c b/src/soc/intel/jasperlake/cpu.c index 8dd2682fbb..d01f1d7471 100644 --- a/src/soc/intel/jasperlake/cpu.c +++ b/src/soc/intel/jasperlake/cpu.c @@ -14,6 +14,7 @@ #include #include #include +#include #include bool cpu_soc_is_in_untrusted_mode(void) diff --git a/src/soc/intel/jasperlake/espi.c b/src/soc/intel/jasperlake/espi.c index 352b3785e1..dfa3b19f9a 100644 --- a/src/soc/intel/jasperlake/espi.c +++ b/src/soc/intel/jasperlake/espi.c @@ -14,6 +14,7 @@ #include #include #include +#include void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { diff --git a/src/soc/intel/jasperlake/finalize.c b/src/soc/intel/jasperlake/finalize.c index 6cff7a80f3..8788db155d 100644 --- a/src/soc/intel/jasperlake/finalize.c +++ b/src/soc/intel/jasperlake/finalize.c @@ -19,6 +19,7 @@ #include #include #include +#include #define CAMERA1_CLK 0x8000 /* Camera 1 Clock */ #define CAMERA2_CLK 0x8080 /* Camera 2 Clock */ diff --git a/src/soc/intel/jasperlake/fsp_params.c b/src/soc/intel/jasperlake/fsp_params.c index 50fc13632d..85664ce18b 100644 --- a/src/soc/intel/jasperlake/fsp_params.c +++ b/src/soc/intel/jasperlake/fsp_params.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/src/soc/intel/jasperlake/pmc.c b/src/soc/intel/jasperlake/pmc.c index cb18fde2eb..dccf7c7766 100644 --- a/src/soc/intel/jasperlake/pmc.c +++ b/src/soc/intel/jasperlake/pmc.c @@ -11,6 +11,7 @@ #include #include #include +#include static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable) { diff --git a/src/soc/intel/jasperlake/pmutil.c b/src/soc/intel/jasperlake/pmutil.c index 855e9b342a..f94232a98a 100644 --- a/src/soc/intel/jasperlake/pmutil.c +++ b/src/soc/intel/jasperlake/pmutil.c @@ -24,6 +24,7 @@ #include #include #include +#include /* * SMI diff --git a/src/soc/intel/jasperlake/romstage/fsp_params.c b/src/soc/intel/jasperlake/romstage/fsp_params.c index a5750279db..0d9710eb79 100644 --- a/src/soc/intel/jasperlake/romstage/fsp_params.c +++ b/src/soc/intel/jasperlake/romstage/fsp_params.c @@ -11,6 +11,7 @@ #include #include #include +#include static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const struct soc_intel_jasperlake_config *config) diff --git a/src/soc/intel/jasperlake/systemagent.c b/src/soc/intel/jasperlake/systemagent.c index f0e9d44bbb..d2a64dddf7 100644 --- a/src/soc/intel/jasperlake/systemagent.c +++ b/src/soc/intel/jasperlake/systemagent.c @@ -11,6 +11,7 @@ #include #include #include +#include /* * SoC implementation diff --git a/src/soc/intel/jasperlake/xhci.c b/src/soc/intel/jasperlake/xhci.c index 49f919d78f..55ed9c789a 100644 --- a/src/soc/intel/jasperlake/xhci.c +++ b/src/soc/intel/jasperlake/xhci.c @@ -4,6 +4,7 @@ #include #include #include +#include #define XHCI_USB2_PORT_STATUS_REG 0x480 #define XHCI_USB3_PORT_STATUS_REG 0x500 -- cgit v1.2.3