From f35dfdf0374f76457df0099db142bfc6f8b2c05c Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sun, 29 Sep 2024 18:45:45 -0600 Subject: soc/amd/*: 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: I9db5d80ca0a75ccff3b8e24db0ccbd6b36c84dcb Signed-off-by: Nicholas Chin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84587 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson Reviewed-by: Arthur Heymans Reviewed-by: Varshit Pandya Reviewed-by: Angel Pons --- src/soc/amd/phoenix/acpi.c | 1 + src/soc/amd/phoenix/config.c | 1 + src/soc/amd/phoenix/fch.c | 1 + src/soc/amd/phoenix/fsp_m_params.c | 1 + src/soc/amd/phoenix/i2c.c | 1 + src/soc/amd/phoenix/root_complex.c | 1 + 6 files changed, 6 insertions(+) (limited to 'src/soc/amd/phoenix') diff --git a/src/soc/amd/phoenix/acpi.c b/src/soc/amd/phoenix/acpi.c index c6e06be0bb..a182dfbb12 100644 --- a/src/soc/amd/phoenix/acpi.c +++ b/src/soc/amd/phoenix/acpi.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include "chip.h" diff --git a/src/soc/amd/phoenix/config.c b/src/soc/amd/phoenix/config.c index b25298750a..664f09e3b9 100644 --- a/src/soc/amd/phoenix/config.c +++ b/src/soc/amd/phoenix/config.c @@ -2,6 +2,7 @@ #include #include +#include #include "chip.h" const struct soc_amd_common_config *soc_get_common_config(void) diff --git a/src/soc/amd/phoenix/fch.c b/src/soc/amd/phoenix/fch.c index 779d448682..52438e3821 100644 --- a/src/soc/amd/phoenix/fch.c +++ b/src/soc/amd/phoenix/fch.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "chip.h" /* diff --git a/src/soc/amd/phoenix/fsp_m_params.c b/src/soc/amd/phoenix/fsp_m_params.c index 06c712733c..45a038e6fc 100644 --- a/src/soc/amd/phoenix/fsp_m_params.c +++ b/src/soc/amd/phoenix/fsp_m_params.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/src/soc/amd/phoenix/i2c.c b/src/soc/amd/phoenix/i2c.c index 8237b7d776..e069c230d4 100644 --- a/src/soc/amd/phoenix/i2c.c +++ b/src/soc/amd/phoenix/i2c.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "chip.h" /* Table to switch SCL pins to outputs to initially reset the I2C peripherals */ diff --git a/src/soc/amd/phoenix/root_complex.c b/src/soc/amd/phoenix/root_complex.c index 7fed3bdb31..724121c1aa 100644 --- a/src/soc/amd/phoenix/root_complex.c +++ b/src/soc/amd/phoenix/root_complex.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "chip.h" -- cgit v1.2.3