diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2024-09-29 18:45:45 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-10-07 20:33:49 +0000 |
commit | 6ca36baebc3ec2d3c59d2fd2536b6a5d81c23241 (patch) | |
tree | 9c39af09caff3495775f636be09a4f331bbf0a5b /src/soc/intel/elkhartlake | |
parent | a8de7c7d568f9bcdea92876c120f52c3272b31d2 (diff) |
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 <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84586
Reviewed-by: Jayvik Desai <jayvik@google.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/elkhartlake')
-rw-r--r-- | src/soc/intel/elkhartlake/acpi.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/chip.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/cpu.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/espi.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/fsp_params.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/pmc.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/pmutil.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/romstage/fsp_params.c | 1 | ||||
-rw-r--r-- | src/soc/intel/elkhartlake/systemagent.c | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/elkhartlake/acpi.c b/src/soc/intel/elkhartlake/acpi.c index 8e9c9bee54..deba47e0f6 100644 --- a/src/soc/intel/elkhartlake/acpi.c +++ b/src/soc/intel/elkhartlake/acpi.c @@ -19,6 +19,7 @@ #include <soc/pm.h> #include <soc/soc_chip.h> #include <soc/systemagent.h> +#include <static.h> /* * List of supported C-states in this processor. diff --git a/src/soc/intel/elkhartlake/chip.c b/src/soc/intel/elkhartlake/chip.c index 138d625785..1cda678d07 100644 --- a/src/soc/intel/elkhartlake/chip.c +++ b/src/soc/intel/elkhartlake/chip.c @@ -16,6 +16,7 @@ #include <soc/pcie.h> #include <soc/ramstage.h> #include <soc/soc_chip.h> +#include <static.h> #if CONFIG(HAVE_ACPI_TABLES) const char *soc_acpi_name(const struct device *dev) diff --git a/src/soc/intel/elkhartlake/cpu.c b/src/soc/intel/elkhartlake/cpu.c index 49e418a4b5..4e85d01840 100644 --- a/src/soc/intel/elkhartlake/cpu.c +++ b/src/soc/intel/elkhartlake/cpu.c @@ -14,6 +14,7 @@ #include <soc/msr.h> #include <soc/pci_devs.h> #include <soc/soc_chip.h> +#include <static.h> #include <types.h> bool cpu_soc_is_in_untrusted_mode(void) diff --git a/src/soc/intel/elkhartlake/espi.c b/src/soc/intel/elkhartlake/espi.c index 15bf932e57..de2a84f8f0 100644 --- a/src/soc/intel/elkhartlake/espi.c +++ b/src/soc/intel/elkhartlake/espi.c @@ -14,6 +14,7 @@ #include <soc/pci_devs.h> #include <soc/pcr_ids.h> #include <soc/soc_chip.h> +#include <static.h> void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES]) { diff --git a/src/soc/intel/elkhartlake/fsp_params.c b/src/soc/intel/elkhartlake/fsp_params.c index 90d1823f50..7b715f83d9 100644 --- a/src/soc/intel/elkhartlake/fsp_params.c +++ b/src/soc/intel/elkhartlake/fsp_params.c @@ -15,6 +15,7 @@ #include <soc/pci_devs.h> #include <soc/ramstage.h> #include <soc/soc_chip.h> +#include <static.h> #include <types.h> /* SATA DEVSLP idle timeout default values */ diff --git a/src/soc/intel/elkhartlake/pmc.c b/src/soc/intel/elkhartlake/pmc.c index e3e4ec0517..567f50d18e 100644 --- a/src/soc/intel/elkhartlake/pmc.c +++ b/src/soc/intel/elkhartlake/pmc.c @@ -11,6 +11,7 @@ #include <soc/pci_devs.h> #include <soc/pm.h> #include <soc/soc_chip.h> +#include <static.h> static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable) { diff --git a/src/soc/intel/elkhartlake/pmutil.c b/src/soc/intel/elkhartlake/pmutil.c index c9ae847b72..2618798f38 100644 --- a/src/soc/intel/elkhartlake/pmutil.c +++ b/src/soc/intel/elkhartlake/pmutil.c @@ -24,6 +24,7 @@ #include <soc/pm.h> #include <soc/smbus.h> #include <soc/soc_chip.h> +#include <static.h> /* * SMI diff --git a/src/soc/intel/elkhartlake/romstage/fsp_params.c b/src/soc/intel/elkhartlake/romstage/fsp_params.c index cebc48d265..d05a94d2aa 100644 --- a/src/soc/intel/elkhartlake/romstage/fsp_params.c +++ b/src/soc/intel/elkhartlake/romstage/fsp_params.c @@ -11,6 +11,7 @@ #include <soc/pcie.h> #include <soc/romstage.h> #include <soc/soc_chip.h> +#include <static.h> /* ISA Serial Base selection. */ enum { diff --git a/src/soc/intel/elkhartlake/systemagent.c b/src/soc/intel/elkhartlake/systemagent.c index 9eadf89c57..ee29f50505 100644 --- a/src/soc/intel/elkhartlake/systemagent.c +++ b/src/soc/intel/elkhartlake/systemagent.c @@ -9,6 +9,7 @@ #include <soc/iomap.h> #include <soc/soc_chip.h> #include <soc/systemagent.h> +#include <static.h> /* * SoC implementation |