summaryrefslogtreecommitdiff
path: root/src/soc/amd/mendocino
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-09-29 18:45:45 -0600
committerMarshall Dawson <marshalldawson3rd@gmail.com>2024-10-03 21:06:19 +0000
commitf35dfdf0374f76457df0099db142bfc6f8b2c05c (patch)
tree3c026f783b6477206a820903441bd78e39fc2e3f /src/soc/amd/mendocino
parent1efb6e84b7e048c0ccbd8f6ae3a2610585ca90bd (diff)
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 <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84587 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/mendocino')
-rw-r--r--src/soc/amd/mendocino/acpi.c1
-rw-r--r--src/soc/amd/mendocino/config.c1
-rw-r--r--src/soc/amd/mendocino/fch.c1
-rw-r--r--src/soc/amd/mendocino/fsp_m_params.c1
-rw-r--r--src/soc/amd/mendocino/i2c.c1
-rw-r--r--src/soc/amd/mendocino/root_complex.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/mendocino/acpi.c b/src/soc/amd/mendocino/acpi.c
index e7f0d96c64..9982d844ab 100644
--- a/src/soc/amd/mendocino/acpi.c
+++ b/src/soc/amd/mendocino/acpi.c
@@ -17,6 +17,7 @@
#include <cpu/amd/cpuid.h>
#include <device/device.h>
#include <soc/iomap.h>
+#include <static.h>
#include <types.h>
#include "chip.h"
diff --git a/src/soc/amd/mendocino/config.c b/src/soc/amd/mendocino/config.c
index 64a8b4b600..db3612bbce 100644
--- a/src/soc/amd/mendocino/config.c
+++ b/src/soc/amd/mendocino/config.c
@@ -2,6 +2,7 @@
#include <amdblocks/chip.h>
#include <device/device.h>
+#include <static.h>
#include "chip.h"
const struct soc_amd_common_config *soc_get_common_config(void)
diff --git a/src/soc/amd/mendocino/fch.c b/src/soc/amd/mendocino/fch.c
index 8fb0190396..57b513a557 100644
--- a/src/soc/amd/mendocino/fch.c
+++ b/src/soc/amd/mendocino/fch.c
@@ -16,6 +16,7 @@
#include <soc/i2c.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
+#include <static.h>
#include "chip.h"
/*
diff --git a/src/soc/amd/mendocino/fsp_m_params.c b/src/soc/amd/mendocino/fsp_m_params.c
index 6582a7cd50..8a7666999c 100644
--- a/src/soc/amd/mendocino/fsp_m_params.c
+++ b/src/soc/amd/mendocino/fsp_m_params.c
@@ -12,6 +12,7 @@
#include <fsp/api.h>
#include <soc/platform_descriptors.h>
#include <soc/pci_devs.h>
+#include <static.h>
#include <string.h>
#include <types.h>
#include <vendorcode/amd/fsp/mendocino/FspUsb.h>
diff --git a/src/soc/amd/mendocino/i2c.c b/src/soc/amd/mendocino/i2c.c
index 92e46b9020..92433a735d 100644
--- a/src/soc/amd/mendocino/i2c.c
+++ b/src/soc/amd/mendocino/i2c.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <soc/i2c.h>
#include <soc/southbridge.h>
+#include <static.h>
#include "chip.h"
/* Table to switch SCL pins to outputs to initially reset the I2C peripherals */
diff --git a/src/soc/amd/mendocino/root_complex.c b/src/soc/amd/mendocino/root_complex.c
index a7cbe5131a..65ae5077d0 100644
--- a/src/soc/amd/mendocino/root_complex.c
+++ b/src/soc/amd/mendocino/root_complex.c
@@ -12,6 +12,7 @@
#include <device/pci.h>
#include <fsp/amd_misc_data.h>
#include <soc/iomap.h>
+#include <static.h>
#include <stdint.h>
#include "chip.h"