soc/*: Explicitly include static.h for DEV_PTR
As per commit 05a13e7ed9 ("sconfig: Move (WEAK_)DEV_PTR from device.h
to static.h"), sources that require access to devicetree static devices
should directly include static.h. This allows static.h to be removed
from device.h, eliminating unnecessary dependencies on the devicetree
for objects that only need the device types and function declarations.
The DEV_PTR macro resolves to names declared in static_devices.h, which
is then included in static.h, so include the header whenever the macro
is used.
Change-Id: Ie281e9a9c015b19bfc96b83021a6e3afd98abcc3
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84677
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Jayvik Desai <jayvik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
05a13e7ed9
commit
7b466fb60b
13 changed files with 14 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef AMD_CEZANNE_XHCI_H
|
||||
#define AMD_CEZANNE_XHCI_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <static.h>
|
||||
|
||||
#define SOC_XHCI_0 DEV_PTR(xhci_0)
|
||||
#define SOC_XHCI_1 DEV_PTR(xhci_1)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <soc/pci_devs.h>
|
||||
#include <soc/northbridge.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <static.h>
|
||||
#include <string.h>
|
||||
|
||||
void __weak SetMemParams(AMD_POST_PARAMS *PostParams) {}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
#ifndef AMD_MENDOCINO_XHCI_H
|
||||
#define AMD_MENDOCINO_XHCI_H
|
||||
|
||||
#include <static.h>
|
||||
|
||||
#define SOC_XHCI_0 DEV_PTR(xhci_0)
|
||||
#define SOC_XHCI_1 DEV_PTR(xhci_1)
|
||||
#define SOC_XHCI_2 DEV_PTR(xhci_2)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <drivers/usb/pci_xhci/pci_xhci.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/smi.h>
|
||||
#include <static.h>
|
||||
|
||||
static const struct sci_source xhci_sci_sources[] = {
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef AMD_PHOENIX_XHCI_H
|
||||
#define AMD_PHOENIX_XHCI_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <static.h>
|
||||
|
||||
#define SOC_XHCI_0 DEV_PTR(xhci_0)
|
||||
#define SOC_XHCI_1 DEV_PTR(xhci_1)
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <console/console.h>
|
||||
#include <soc/southbridge.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
#include <amdblocks/agesawrapper.h>
|
||||
#include <amdblocks/dimm_spd.h>
|
||||
#include <amdblocks/car.h>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <soc/aoac_defs.h>
|
||||
#include <soc/nvs.h>
|
||||
#include <static.h>
|
||||
#include <types.h>
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <amdblocks/agesawrapper.h>
|
||||
#include <device/device.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
static int is_sata_config(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <soc/northbridge.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <static.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <drivers/intel/usb4/retimer/retimer.h>
|
||||
#include <intelblocks/tcss.h>
|
||||
#include <static.h>
|
||||
|
||||
int retimer_get_index_for_typec(uint8_t typec_port)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <drivers/intel/usb4/retimer/retimer.h>
|
||||
#include <intelblocks/tcss.h>
|
||||
#include <static.h>
|
||||
|
||||
int retimer_get_index_for_typec(uint8_t typec_port)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <drivers/intel/usb4/retimer/retimer.h>
|
||||
#include <intelblocks/tcss.h>
|
||||
#include <static.h>
|
||||
|
||||
int retimer_get_index_for_typec(uint8_t typec_port)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <drivers/intel/usb4/retimer/retimer.h>
|
||||
#include <intelblocks/tcss.h>
|
||||
#include <static.h>
|
||||
#include <stdint.h>
|
||||
|
||||
int retimer_get_index_for_typec(uint8_t typec_port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue