tree: Include static.h for remaining devicetree usages

As per commit 8651731537 ("sconfig: Move config_of_soc from device.h
to static.h") and commit 05a13e7ed9 ("sconfig: Move (WEAK_)DEV_PTR
from device.h to static.h"), sources that use code generated from the
devicetree should directly include static.h. This allows static.h to be
removed from device.h, eliminating many unnecessary dependencies on the
devicetree for objects that only need the device types and function
declarations.

Add static.h to the includes of all remaining files that require static
devicetree access through config_of_soc(), the sconfig generated names,
or DEV_PTR().

Change-Id: I1d35ff2ac22f9ff5e0aa38b7ad707619e50387f3
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84591
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Nicholas Chin 2024-09-29 21:16:18 -06:00 committed by Felix Singer
commit 05765c8951
6 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,7 @@
#include <cpu/intel/common/common.h>
#include <smbios.h>
#include <smp/node.h>
#include <static.h>
#include <types.h>
/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */

View file

@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include <option.h>
#include <static.h>
#include <types.h>
#include <variants.h>

View file

@ -11,6 +11,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <static.h>
#include <string.h>
#include <stdlib.h>
#include <cpu/x86/mp.h>

View file

@ -15,6 +15,7 @@
#include <soc/nvs.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <static.h>
#include <types.h>
#include "systemagent_def.h"

View file

@ -21,6 +21,7 @@
#include <southbridge/intel/common/pmutil.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
#include <southbridge/intel/common/rcba_pirq.h>
#include <static.h>
#define NMI_OFF 0

View file

@ -22,6 +22,7 @@
#include <southbridge/intel/common/pmutil.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
#include <southbridge/intel/common/rcba_pirq.h>
#include <static.h>
#define NMI_OFF 0