mb/*: 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: Ia793666fda47678764fd33891fddb4aecf207bd4
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84588
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Jayvik Desai <jayvik@google.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
e7f47412a8
commit
e5c2babcc0
43 changed files with 43 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <soc/southbridge.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/platform_descriptors.h>
|
||||
#include <static.h>
|
||||
#include <types.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <soc/amd/picasso/chip.h>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <device/device.h>
|
||||
#include <soc/amd/phoenix/chip.h>
|
||||
#include <soc/soc_util.h>
|
||||
#include <static.h>
|
||||
#include <vendorcode/amd/opensil/chip/mpio/chip.h>
|
||||
#include "display_card_type.h"
|
||||
#include "update_devicetree.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <soc/cpu.h>
|
||||
#include <soc/southbridge.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
#include <types.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <soc/amd/picasso/chip.h>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <ec/google/chromeec/ec.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
|
||||
WEAK_DEV_PTR(dptf_policy);
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <device/pci_ops.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include <console/console.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include <console/console.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <ec/ec.h>
|
||||
#include <security/tpm/tss.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
#include <timer.h>
|
||||
#include <vb2_api.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <soc/gpio.h>
|
||||
#include <static.h>
|
||||
|
||||
static const struct pad_config ts_disable_pad[] = {
|
||||
/* A11 : TOUCH_RPT_EN */
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <chip.h>
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
#define SET_PSYSPL2(e, w) ((e) * (w) / 100)
|
||||
#define MICROWATTS_TO_WATTS 1000000
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <drivers/usb/acpi/chip.h>
|
||||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static void ext_vr_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static void ext_vr_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static void ext_vr_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static void ext_vr_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <fw_config.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static void ext_vr_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <smbios.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/nhlt.h>
|
||||
#include <static.h>
|
||||
#include <stdio.h>
|
||||
#include <timer.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <chip.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <static.h>
|
||||
|
||||
void variant_devtree_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <ec/google/chromeec/ec.h>
|
||||
#include <sar.h>
|
||||
#include <drivers/intel/gma/opregion.h>
|
||||
#include <static.h>
|
||||
|
||||
void variant_devtree_update(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <device/pci_ids.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <static.h>
|
||||
|
||||
#define PL2_AML 18
|
||||
#define PL2_KBL 15
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <intelblocks/power_limit.h>
|
||||
#include <smbios.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <static.h>
|
||||
#include <stdio.h>
|
||||
#include <variant/sku.h>
|
||||
#include <gpio.h>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <device/device.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <smbios.h>
|
||||
#include <static.h>
|
||||
#include <stdio.h>
|
||||
#include <variant/sku.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <device/pci_ids.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <static.h>
|
||||
|
||||
/* PL2 limit in watts for AML and KBL */
|
||||
#define PL2_AML 18
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <gpio.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
#include <timer.h>
|
||||
|
||||
#define GPIO_HDMI_HPD GPP_E13
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include <device/pci_ops.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
struct soc_power_limits_config *variant_get_soc_power_limit_config(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <chip.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
#include <static.h>
|
||||
|
||||
/*
|
||||
* SKU_ID, TDP (Watts), pl1_min (milliWatts), pl1_max (milliWatts),
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <gpio.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
extern struct chip_operations drivers_i2c_generic_ops;
|
||||
extern struct chip_operations drivers_i2c_hid_ops;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <ec/google/chromeec/i2c_tunnel/chip.h>
|
||||
#include <static.h>
|
||||
|
||||
#define DALBOZ_DB_HDMI 0x1
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <baseboard/variants.h>
|
||||
#include <soc/amd/picasso/chip.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <static.h>
|
||||
|
||||
uint32_t usb_oc_map_override[USB_PORT_COUNT] = {
|
||||
USB_OC_PIN_0,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include <fw_config.h>
|
||||
#include <sar.h>
|
||||
#include <soc/amd/picasso/chip.h>
|
||||
#include <static.h>
|
||||
|
||||
static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
|
||||
{ // DDI0, DP0, eDP
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <soc/gpio_soc_defs.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
#include <string.h>
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include "board_id.h"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <soc/dimm_slot.h>
|
||||
#include <soc/iio.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <static.h>
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <soc/dimm_slot.h>
|
||||
#include <soc/iio.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <static.h>
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <soc/gpio_soc_defs.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/soc_chip.h>
|
||||
#include <static.h>
|
||||
#include <string.h>
|
||||
#include <drivers/intel/dptf/chip.h>
|
||||
#include <intelblocks/power_limit.h>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <fsp/api.h>
|
||||
#include <FspmUpd.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <static.h>
|
||||
#include <FspmUpdHelper.h>
|
||||
|
||||
#include "chip.h"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <intelblocks/pmclib.h>
|
||||
#include <smbios.h>
|
||||
#include <soc/pm.h>
|
||||
#include <static.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <option.h>
|
||||
#include <static.h>
|
||||
#include <types.h>
|
||||
#include <variants.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue