soc/amd/*: Explicitly include static.h for config_of_soc

As per commit 8651731537 ("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>
This commit is contained in:
Nicholas Chin 2024-09-29 18:45:45 -06:00 committed by Marshall Dawson
commit f35dfdf037
33 changed files with 33 additions and 0 deletions

View file

@ -15,6 +15,7 @@
#include <cpu/amd/cpuid.h>
#include <device/device.h>
#include <soc/iomap.h>
#include <static.h>
#include <types.h>
#include "chip.h"

View file

@ -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)

View file

@ -21,6 +21,7 @@
#include <soc/platform_descriptors.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
#include <static.h>
#include "chip.h"
/*

View file

@ -10,6 +10,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/cezanne/FspUsb.h>

View file

@ -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 */

View file

@ -9,6 +9,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <soc/iomap.h>
#include <static.h>
#include <stdint.h>
#include "chip.h"

View file

@ -3,6 +3,7 @@
#include <device/device.h>
#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)

View file

@ -3,6 +3,7 @@
#include <amdblocks/i2c.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 */

View file

@ -18,6 +18,7 @@
#include <cpu/amd/cpuid.h>
#include <device/device.h>
#include <soc/iomap.h>
#include <static.h>
#include <types.h>
#include "chip.h"

View file

@ -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)

View file

@ -18,6 +18,7 @@
#include <soc/i2c.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
#include <static.h>
#include "chip.h"
/*

View file

@ -13,6 +13,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/glinda/FspUsb.h>

View file

@ -6,6 +6,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 */

View file

@ -11,6 +11,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <soc/iomap.h>
#include <static.h>
#include <stdint.h>
#include "chip.h"

View file

@ -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"

View file

@ -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)

View file

@ -16,6 +16,7 @@
#include <soc/i2c.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
#include <static.h>
#include "chip.h"
/*

View file

@ -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>

View file

@ -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 */

View file

@ -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"

View file

@ -18,6 +18,7 @@
#include <cpu/amd/cpuid.h>
#include <device/device.h>
#include <soc/iomap.h>
#include <static.h>
#include <types.h>
#include <vendorcode/amd/opensil/opensil.h>
#include "chip.h"

View file

@ -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)

View file

@ -16,6 +16,7 @@
#include <soc/i2c.h>
#include <soc/smi.h>
#include <soc/southbridge.h>
#include <static.h>
#include "chip.h"
/*

View file

@ -13,6 +13,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/phoenix/FspUsb.h>

View file

@ -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 */

View file

@ -11,6 +11,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <soc/iomap.h>
#include <static.h>
#include <stdint.h>
#include "chip.h"

View file

@ -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)

View file

@ -21,6 +21,7 @@
#include <soc/smi.h>
#include <soc/amd_pci_int_defs.h>
#include <soc/pci_devs.h>
#include <static.h>
#include <types.h>
#include "chip.h"

View file

@ -8,6 +8,7 @@
#include <soc/platform_descriptors.h>
#include <soc/pci_devs.h>
#include <soc/fsp.h>
#include <static.h>
#include <types.h>
#include "chip.h"

View file

@ -7,6 +7,7 @@
#include <soc/pci_devs.h>
#include <soc/platform_descriptors.h>
#include <soc/soc_util.h>
#include <static.h>
#include <fsp/api.h>
#include "chip.h"

View file

@ -7,6 +7,7 @@
#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <soc/southbridge.h>
#include <static.h>
#include "chip.h"
/* Table to switch SCL pins to outputs to initially reset the I2C peripherals */

View file

@ -8,6 +8,7 @@
#include <arch/ioapic.h>
#include <device/device.h>
#include <device/pci.h>
#include <static.h>
#include <stdint.h>
#include <soc/iomap.h>
#include "chip.h"

View file

@ -4,6 +4,7 @@
#include <amdblocks/i2c.h>
#include <soc/iomap.h>
#include <soc/i2c.h>
#include <static.h>
#include "chip.h"
#include <drivers/i2c/designware/dw_i2c.h>