soc/intel/adl to jsl: 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: I03e42689487c6d63436d9c2945558073aae87cd1
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84586
Reviewed-by: Jayvik Desai <jayvik@google.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nicholas Chin 2024-09-29 18:45:45 -06:00 committed by Martin L Roth
commit 6ca36baebc
52 changed files with 52 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
#include <cpu/cpu.h>
#include <types.h>

View file

@ -20,6 +20,7 @@
#include <soc/pcie.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#if CONFIG(HAVE_ACPI_TABLES)
const char *soc_acpi_name(const struct device *dev)

View file

@ -24,6 +24,7 @@
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
enum alderlake_model {

View file

@ -19,6 +19,7 @@
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/soc_chip.h>
#include <static.h>
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
{

View file

@ -26,6 +26,7 @@
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
#include <static.h>
#define CAMERA1_CLK 0x8000 /* Camera 1 Clock */
#define CAMERA2_CLK 0x8080 /* Camera 2 Clock */

View file

@ -32,6 +32,7 @@
#include <soc/pcie.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>

View file

@ -20,6 +20,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <stdint.h>
#include <bootstate.h>

View file

@ -30,6 +30,7 @@
#include <soc/pm.h>
#include <soc/smbus.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
/*

View file

@ -22,6 +22,7 @@
#include <soc/pcie.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <string.h>
#include "ux.h"

View file

@ -4,6 +4,7 @@
#include <drivers/intel/gma/i915_reg.h>
#include <intelblocks/early_graphics.h>
#include <soc/soc_chip.h>
#include <static.h>
void early_graphics_soc_panel_init(void)
{

View file

@ -19,6 +19,7 @@
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <spi_flash.h>
#include <static.h>
#include <stddef.h>
/*

View file

@ -19,6 +19,7 @@
#include <soc/nvs.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <static.h>
#include "chip.h"

View file

@ -22,6 +22,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <spi-generic.h>
#include <static.h>
static const struct pad_config tpm_spi_configs[] = {
#if CONFIG(SOC_INTEL_GEMINILAKE)

View file

@ -35,6 +35,7 @@
#include <soc/pm.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
#include <static.h>
#include <timer.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>

View file

@ -6,6 +6,7 @@
#include <soc/pcr_ids.h>
#include <soc/pm.h>
#include <soc/intel/common/block/lpc/lpc_def.h>
#include <static.h>
#include "chip.h"
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])

View file

@ -19,6 +19,7 @@
#include <soc/pm.h>
#include <soc/smbus.h>
#include <security/vboot/vbnv.h>
#include <static.h>
#include "chip.h"

View file

@ -5,6 +5,7 @@
#include <intelblocks/pcr.h>
#include <soc/pci_devs.h>
#include <soc/pnpconfig.h>
#include <static.h>
#include "chip.h"
static const struct pnpconfig perf[] = {

View file

@ -11,6 +11,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/romstage.h>
#include <static.h>
#include "../chip.h"
/* This sequence signals the PUNIT to start running. */

View file

@ -6,6 +6,7 @@
#include <soc/pei_data.h>
#include <soc/pei_wrapper.h>
#include <soc/intel/broadwell/chip.h>
#include <static.h>
static void ABI_X86 send_to_console(unsigned char b)
{

View file

@ -18,6 +18,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/systemagent.h>
#include <static.h>
#include "chip.h"

View file

@ -15,6 +15,7 @@
#include <cpu/x86/mtrr.h>
#include <cpu/intel/microcode.h>
#include <cpu/intel/common/common.h>
#include <static.h>
#include <types.h>
#include "chip.h"

View file

@ -21,6 +21,7 @@
#include <soc/smbus.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
#include <static.h>
#include "chip.h"

View file

@ -16,6 +16,7 @@
#include <soc/intel/common/vbt.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <static.h>
#include <string.h>
#include <types.h>

View file

@ -2,6 +2,7 @@
#include <gpio.h>
#include <soc/soc_chip.h>
#include <static.h>
/*
* Routine to perform below operations:

View file

@ -13,6 +13,7 @@
#include <soc/lpc.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <static.h>
#include "chip.h"

View file

@ -10,6 +10,7 @@
#include <intelblocks/rtc.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <static.h>
#include "chip.h"

View file

@ -23,6 +23,7 @@
#include <soc/pm.h>
#include <soc/smbus.h>
#include <security/vboot/vbnv.h>
#include <static.h>
#include "chip.h"

View file

@ -9,6 +9,7 @@
#include <soc/cpu.h>
#include <soc/iomap.h>
#include <soc/systemagent.h>
#include <static.h>
#include "chip.h"
/*

View file

@ -5,6 +5,7 @@
#include <fsp/api.h>
#include <soc/ramstage.h>
#include <soc/vr_config.h>
#include <static.h>
#include <console/console.h>
#include <intelblocks/cpulib.h>

View file

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/soc_chip.h>
#include <static.h>
struct soc_intel_common_config *chip_get_common_soc_structure(void)
{

View file

@ -13,6 +13,7 @@
#include <intelblocks/msr.h>
#include <smp/node.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
#define CPUID_PROCESSOR_FREQUENCY 0X16

View file

@ -10,6 +10,7 @@
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */
static const u8 power_limit_time_sec_to_msr[] = {

View file

@ -19,6 +19,7 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
/*
* List of supported C-states in this processor.

View file

@ -16,6 +16,7 @@
#include <soc/pcie.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#if CONFIG(HAVE_ACPI_TABLES)
const char *soc_acpi_name(const struct device *dev)

View file

@ -14,6 +14,7 @@
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
bool cpu_soc_is_in_untrusted_mode(void)

View file

@ -14,6 +14,7 @@
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/soc_chip.h>
#include <static.h>
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
{

View file

@ -15,6 +15,7 @@
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
/* SATA DEVSLP idle timeout default values */

View file

@ -11,6 +11,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <static.h>
static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable)
{

View file

@ -24,6 +24,7 @@
#include <soc/pm.h>
#include <soc/smbus.h>
#include <soc/soc_chip.h>
#include <static.h>
/*
* SMI

View file

@ -11,6 +11,7 @@
#include <soc/pcie.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
#include <static.h>
/* ISA Serial Base selection. */
enum {

View file

@ -9,6 +9,7 @@
#include <soc/iomap.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
/*
* SoC implementation

View file

@ -19,6 +19,7 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
/*
* List of supported C-states in this processor.

View file

@ -16,6 +16,7 @@
#include <soc/pcie.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#if CONFIG(HAVE_ACPI_TABLES)
const char *soc_acpi_name(const struct device *dev)

View file

@ -14,6 +14,7 @@
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <types.h>
bool cpu_soc_is_in_untrusted_mode(void)

View file

@ -14,6 +14,7 @@
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/soc_chip.h>
#include <static.h>
void soc_get_gen_io_dec_range(uint32_t gen_io_dec[LPC_NUM_GENERIC_IO_RANGES])
{

View file

@ -19,6 +19,7 @@
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
#include <static.h>
#define CAMERA1_CLK 0x8000 /* Camera 1 Clock */
#define CAMERA2_CLK 0x8080 /* Camera 2 Clock */

View file

@ -14,6 +14,7 @@
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
#include <static.h>
#include <string.h>
#include <types.h>

View file

@ -11,6 +11,7 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <static.h>
static void config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable)
{

View file

@ -24,6 +24,7 @@
#include <soc/smbus.h>
#include <soc/soc_chip.h>
#include <security/vboot/vbnv.h>
#include <static.h>
/*
* SMI

View file

@ -11,6 +11,7 @@
#include <soc/pcie.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
#include <static.h>
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
const struct soc_intel_jasperlake_config *config)

View file

@ -11,6 +11,7 @@
#include <soc/iomap.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <static.h>
/*
* SoC implementation

View file

@ -4,6 +4,7 @@
#include <device/mmio.h>
#include <intelblocks/xhci.h>
#include <soc/soc_chip.h>
#include <static.h>
#define XHCI_USB2_PORT_STATUS_REG 0x480
#define XHCI_USB3_PORT_STATUS_REG 0x500