soc/{amd,intel}/chip: Use local include for chip.h

Change-Id: Ic1fcbf4b54b7d0b5cda04ca9f7fc145050c867b8
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32014
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Elyes HAOUAS 2019-03-21 15:38:06 +01:00 committed by Nico Huber
parent 9df72e0471
commit c3385070d6
45 changed files with 90 additions and 46 deletions

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <bootstate.h> #include <bootstate.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
@ -30,6 +29,8 @@
#include <amdblocks/agesawrapper.h> #include <amdblocks/agesawrapper.h>
#include <amdblocks/agesawrapper_call.h> #include <amdblocks/agesawrapper_call.h>
#include "chip.h"
/* Supplied by i2c.c */ /* Supplied by i2c.c */
extern struct device_operations stoneyridge_i2c_mmio_ops; extern struct device_operations stoneyridge_i2c_mmio_ops;
extern const char *i2c_acpi_name(const struct device *dev); extern const char *i2c_acpi_name(const struct device *dev);

View File

@ -13,13 +13,11 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <arch/acpigen.h> #include <arch/acpigen.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/amd/mtrr.h> #include <cpu/amd/mtrr.h>
#include <cpu/x86/lapic_def.h> #include <cpu/x86/lapic_def.h>
@ -42,6 +40,8 @@
#include <string.h> #include <string.h>
#include <arch/bert_storage.h> #include <arch/bert_storage.h>
#include "chip.h"
static void set_io_addr_reg(struct device *dev, u32 nodeid, u32 linkn, u32 reg, static void set_io_addr_reg(struct device *dev, u32 nodeid, u32 linkn, u32 reg,
u32 io_min, u32 io_max) u32 io_min, u32 io_max)
{ {

View File

@ -24,7 +24,6 @@
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <chip.h>
#include <program_loading.h> #include <program_loading.h>
#include <romstage_handoff.h> #include <romstage_handoff.h>
#include <elog.h> #include <elog.h>
@ -35,6 +34,8 @@
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <amdblocks/psp.h> #include <amdblocks/psp.h>
#include "chip.h"
void __weak mainboard_romstage_entry(int s3_resume) void __weak mainboard_romstage_entry(int s3_resume)
{ {
/* By default, don't do anything */ /* By default, don't do anything */

View File

@ -14,7 +14,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -23,6 +22,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include "chip.h"
static void pci_domain_set_resources(struct device *dev) static void pci_domain_set_resources(struct device *dev)
{ {
printk(BIOS_SPEW, "%s/%s (%s)\n", printk(BIOS_SPEW, "%s/%s (%s)\n",

View File

@ -17,10 +17,11 @@
#ifndef _SOC_RAMSTAGE_H_ #ifndef _SOC_RAMSTAGE_H_
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/ramstage.h> #include <fsp/ramstage.h>
#include "../../chip.h"
#define V_PCH_LPC_RID_A0 0x00 // A0 Stepping #define V_PCH_LPC_RID_A0 0x00 // A0 Stepping
#define V_PCH_LPC_RID_A1 0x04 // A1 Stepping #define V_PCH_LPC_RID_A1 0x04 // A1 Stepping
#define V_PCH_LPC_RID_A2 0x08 // A2 Stepping #define V_PCH_LPC_RID_A2 0x08 // A2 Stepping

View File

@ -22,7 +22,6 @@
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <arch/cbfs.h> #include <arch/cbfs.h>
#include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
@ -44,6 +43,8 @@
#include <build.h> #include <build.h>
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include "../chip.h"
void program_base_addresses(void) void program_base_addresses(void)
{ {
uint32_t reg; uint32_t reg;

View File

@ -19,7 +19,6 @@
#include <arch/acpigen.h> #include <arch/acpigen.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
@ -38,6 +37,8 @@
#include <vendorcode/google/chromeos/gnvs.h> #include <vendorcode/google/chromeos/gnvs.h>
#include <wrdd.h> #include <wrdd.h>
#include "chip.h"
/* /*
* List of supported C-states in this processor. * List of supported C-states in this processor.
*/ */

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <fsp/api.h> #include <fsp/api.h>
@ -27,6 +26,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES) #if CONFIG(HAVE_ACPI_TABLES)
const char *soc_acpi_name(const struct device *dev) const char *soc_acpi_name(const struct device *dev)
{ {

View File

@ -16,7 +16,6 @@
#include <arch/cpu.h> #include <arch/cpu.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci.h> #include <device/pci.h>
#include <chip.h>
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
@ -35,6 +34,8 @@
#include <cpu/intel/microcode.h> #include <cpu/intel/microcode.h>
#include <cpu/intel/common/common.h> #include <cpu/intel/common/common.h>
#include "chip.h"
/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */ /* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */
static const u8 power_limit_time_sec_to_msr[] = { static const u8 power_limit_time_sec_to_msr[] = {
[0] = 0x00, [0] = 0x00,

View File

@ -17,7 +17,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <console/post_codes.h> #include <console/post_codes.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
@ -35,6 +34,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <stdlib.h> #include <stdlib.h>
#include "chip.h"
#define CAMERA1_CLK 0x8000 /* Camera 1 Clock */ #define CAMERA1_CLK 0x8000 /* Camera 1 Clock */
#define CAMERA2_CLK 0x8080 /* Camera 2 Clock */ #define CAMERA2_CLK 0x8080 /* Camera 2 Clock */
#define CAM_CLK_EN (1 << 1) #define CAM_CLK_EN (1 << 1)

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -25,6 +24,8 @@
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <string.h> #include <string.h>
#include "chip.h"
static const int serial_io_dev[] = { static const int serial_io_dev[] = {
PCH_DEVFN_I2C0, PCH_DEVFN_I2C0,
PCH_DEVFN_I2C1, PCH_DEVFN_I2C1,

View File

@ -17,11 +17,12 @@
#ifndef _SOC_RAMSTAGE_H_ #ifndef _SOC_RAMSTAGE_H_
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <fsp/util.h> #include <fsp/util.h>
#include "../../chip.h"
void mainboard_silicon_init_params(FSP_S_CONFIG *params); void mainboard_silicon_init_params(FSP_S_CONFIG *params);
void soc_init_pre_device(void *chip_info); void soc_init_pre_device(void *chip_info);

View File

@ -16,7 +16,6 @@
#include <arch/ebda.h> #include <arch/ebda.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -28,6 +27,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <stdlib.h> #include <stdlib.h>
#include "chip.h"
void smm_region(void **start, size_t *size) void smm_region(void **start, size_t *size)
{ {
*start = (void *)sa_get_tseg_base(); *start = (void *)sa_get_tseg_base();

View File

@ -16,7 +16,6 @@
*/ */
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/device.h> #include <device/device.h>
@ -27,6 +26,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pm.h> #include <soc/pm.h>
#include "chip.h"
/* /*
* Set which power state system will be after reapplying * Set which power state system will be after reapplying
* the power (from G3 State) * the power (from G3 State)

View File

@ -14,7 +14,6 @@
*/ */
#include <assert.h> #include <assert.h>
#include <chip.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <console/console.h> #include <console/console.h>
#include <fsp/util.h> #include <fsp/util.h>
@ -25,6 +24,8 @@
#include <soc/romstage.h> #include <soc/romstage.h>
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include "../chip.h"
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const config_t *config) static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const config_t *config)
{ {
unsigned int i; unsigned int i;

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cbmem.h> #include <cbmem.h>
#include <console/console.h> #include <console/console.h>
@ -30,6 +29,8 @@
#include <string.h> #include <string.h>
#include <timestamp.h> #include <timestamp.h>
#include "../chip.h"
#define FSP_SMBIOS_MEMORY_INFO_GUID \ #define FSP_SMBIOS_MEMORY_INFO_GUID \
{ \ { \
0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \ 0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \

View File

@ -15,7 +15,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <intelblocks/fast_spi.h> #include <intelblocks/fast_spi.h>
@ -27,6 +26,8 @@
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>
#include <soc/pm.h> #include <soc/pm.h>
#include "chip.h"
#define CSME0_FBE 0xf #define CSME0_FBE 0xf
#define CSME0_BAR 0x0 #define CSME0_BAR 0x0
#define CSME0_FID 0xb0 #define CSME0_FID 0xb0

View File

@ -38,9 +38,10 @@
#include <soc/pattrs.h> #include <soc/pattrs.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/broadwell_de.h> #include <soc/broadwell_de.h>
#include <chip.h>
#include <version.h> #include <version.h>
#include "chip.h"
uint16_t get_pmbase(void) uint16_t get_pmbase(void)
{ {
return ACPI_BASE_ADDRESS; return ACPI_BASE_ADDRESS;

View File

@ -22,7 +22,8 @@
#include <drivers/intel/fsp1_0/fsp_util.h> #include <drivers/intel/fsp1_0/fsp_util.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <chip.h>
#include "chip.h"
static void pci_domain_set_resources(struct device *dev) static void pci_domain_set_resources(struct device *dev)
{ {

View File

@ -25,9 +25,10 @@
#include <drivers/intel/fsp1_0/fsp_util.h> #include <drivers/intel/fsp1_0/fsp_util.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/romstage.h> #include <soc/romstage.h>
#include <chip.h>
#include <fsp.h> #include <fsp.h>
#include "../chip.h"
/* Copy the default UPD region and settings to a buffer for modification */ /* Copy the default UPD region and settings to a buffer for modification */
static void GetUpdDefaultFromFsp (FSP_INFO_HEADER *FspInfo, UPD_DATA_REGION *UpdData) static void GetUpdDefaultFromFsp (FSP_INFO_HEADER *FspInfo, UPD_DATA_REGION *UpdData)
{ {

View File

@ -32,7 +32,8 @@
#include <soc/lpc.h> #include <soc/lpc.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <chip.h>
#include "chip.h"
typedef struct soc_intel_fsp_broadwell_de_config config_t; typedef struct soc_intel_fsp_broadwell_de_config config_t;

View File

@ -18,7 +18,6 @@
#include <device/mmio.h> #include <device/mmio.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <intelblocks/cpulib.h> #include <intelblocks/cpulib.h>
#include <intelblocks/pmclib.h> #include <intelblocks/pmclib.h>
@ -32,6 +31,8 @@
#include <vendorcode/google/chromeos/gnvs.h> #include <vendorcode/google/chromeos/gnvs.h>
#include <wrdd.h> #include <wrdd.h>
#include "chip.h"
/* /*
* List of supported C-states in this processor. * List of supported C-states in this processor.
*/ */

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <fsp/api.h> #include <fsp/api.h>
@ -28,6 +27,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES) #if CONFIG(HAVE_ACPI_TABLES)
const char *soc_acpi_name(const struct device *dev) const char *soc_acpi_name(const struct device *dev)
{ {

View File

@ -16,7 +16,6 @@
#include <arch/cpu.h> #include <arch/cpu.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci.h> #include <device/pci.h>
#include <chip.h>
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
@ -33,6 +32,8 @@
#include <soc/pm.h> #include <soc/pm.h>
#include <soc/smm.h> #include <soc/smm.h>
#include "chip.h"
static void soc_fsp_load(void) static void soc_fsp_load(void)
{ {
fsps_load(romstage_handoff_is_resume()); fsps_load(romstage_handoff_is_resume());

View File

@ -16,7 +16,6 @@
#include <arch/io.h> #include <arch/io.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <console/post_codes.h> #include <console/post_codes.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
@ -34,6 +33,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <stdlib.h> #include <stdlib.h>
#include "chip.h"
#define CAMERA1_CLK 0x8000 /* Camera 1 Clock */ #define CAMERA1_CLK 0x8000 /* Camera 1 Clock */
#define CAMERA2_CLK 0x8080 /* Camera 2 Clock */ #define CAMERA2_CLK 0x8080 /* Camera 2 Clock */
#define CAM_CLK_EN (1 << 1) #define CAM_CLK_EN (1 << 1)

View File

@ -16,11 +16,12 @@
#ifndef _SOC_RAMSTAGE_H_ #ifndef _SOC_RAMSTAGE_H_
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <fsp/util.h> #include <fsp/util.h>
#include "../../chip.h"
void mainboard_silicon_init_params(FSP_S_CONFIG *params); void mainboard_silicon_init_params(FSP_S_CONFIG *params);
void soc_init_pre_device(void *chip_info); void soc_init_pre_device(void *chip_info);

View File

@ -15,7 +15,6 @@
#include <arch/ebda.h> #include <arch/ebda.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -27,6 +26,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <stdlib.h> #include <stdlib.h>
#include "chip.h"
void smm_region(void **start, size_t *size) void smm_region(void **start, size_t *size)
{ {
*start = (void *)sa_get_tseg_base(); *start = (void *)sa_get_tseg_base();

View File

@ -14,7 +14,6 @@
*/ */
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/device.h> #include <device/device.h>
@ -25,6 +24,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pm.h> #include <soc/pm.h>
#include "chip.h"
/* /*
* Set which power state system will be after reapplying * Set which power state system will be after reapplying
* the power (from G3 State) * the power (from G3 State)

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cbmem.h> #include <cbmem.h>
#include <console/console.h> #include <console/console.h>
@ -30,6 +29,8 @@
#include <string.h> #include <string.h>
#include <timestamp.h> #include <timestamp.h>
#include "../chip.h"
#define FSP_SMBIOS_MEMORY_INFO_GUID \ #define FSP_SMBIOS_MEMORY_INFO_GUID \
{ \ { \
0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \ 0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <intelblocks/fast_spi.h> #include <intelblocks/fast_spi.h>
@ -25,6 +24,8 @@
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>
#include <soc/pm.h> #include <soc/pm.h>
#include "chip.h"
#define CSME0_FBE 0xf #define CSME0_FBE 0xf
#define CSME0_BAR 0x0 #define CSME0_BAR 0x0
#define CSME0_FID 0xb0 #define CSME0_FID 0xb0

View File

@ -18,11 +18,12 @@
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <arch/cpu.h> #include <arch/cpu.h>
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <soc/QuarkNcSocId.h> #include <soc/QuarkNcSocId.h>
#include "../../chip.h"
void mainboard_gpio_i2c_init(struct device *dev); void mainboard_gpio_i2c_init(struct device *dev);
asmlinkage void chipset_teardown_car(void); asmlinkage void chipset_teardown_car(void);

View File

@ -21,7 +21,6 @@
#include <arch/ioapic.h> #include <arch/ioapic.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
@ -51,6 +50,8 @@
#include <wrdd.h> #include <wrdd.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include "chip.h"
/* /*
* List of suported C-states in this processor. * List of suported C-states in this processor.
*/ */

View File

@ -14,7 +14,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <intelblocks/cse.h> #include <intelblocks/cse.h>
@ -37,6 +36,8 @@
#include <soc/pmc.h> #include <soc/pmc.h>
#include <soc/smbus.h> #include <soc/smbus.h>
#include "../chip.h"
#define PCR_DMI_DMICTL 0x2234 #define PCR_DMI_DMICTL 0x2234
#define PCR_DMI_DMICTL_SRLOCK (1 << 31) #define PCR_DMI_DMICTL_SRLOCK (1 << 31)
#define PCR_DMI_ACPIBA 0x27B4 #define PCR_DMI_ACPIBA 0x27B4

View File

@ -15,7 +15,6 @@
*/ */
#include <arch/acpi.h> #include <arch/acpi.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -33,6 +32,8 @@
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <string.h> #include <string.h>
#include "chip.h"
void soc_init_pre_device(void *chip_info) void soc_init_pre_device(void *chip_info)
{ {
/* Snapshot the current GPIO IRQ polarities. FSP is setting a /* Snapshot the current GPIO IRQ polarities. FSP is setting a

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <bootmode.h> #include <bootmode.h>
#include <bootstate.h> #include <bootstate.h>
#include <device/pci.h> #include <device/pci.h>
@ -42,6 +41,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <string.h> #include <string.h>
#include "chip.h"
struct pcie_entry { struct pcie_entry {
unsigned int devfn; unsigned int devfn;
unsigned int func_count; unsigned int func_count;

View File

@ -20,7 +20,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <chip.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
@ -46,6 +45,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <timer.h> #include <timer.h>
#include "chip.h"
/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */ /* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */
static const u8 power_limit_time_sec_to_msr[] = { static const u8 power_limit_time_sec_to_msr[] = {
[0] = 0x00, [0] = 0x00,

View File

@ -18,7 +18,6 @@
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <console/post_codes.h> #include <console/post_codes.h>
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>
@ -41,6 +40,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <timer.h> #include <timer.h>
#include "chip.h"
#define PSF_BASE_ADDRESS 0xA00 #define PSF_BASE_ADDRESS 0xA00
#define PCR_PSFX_T0_SHDW_PCIEN 0x1C #define PCR_PSFX_T0_SHDW_PCIEN 0x1C
#define PCR_PSFX_T0_SHDW_PCIEN_FUNDIS (1 << 8) #define PCR_PSFX_T0_SHDW_PCIEN_FUNDIS (1 << 8)

View File

@ -17,11 +17,12 @@
#ifndef _SOC_RAMSTAGE_H_ #ifndef _SOC_RAMSTAGE_H_
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/ramstage.h> #include <fsp/ramstage.h>
#include <fsp/soc_binding.h> #include <fsp/soc_binding.h>
#include "../../../chip.h"
#define FSP_SIL_UPD SILICON_INIT_UPD #define FSP_SIL_UPD SILICON_INIT_UPD
#define FSP_MEM_UPD MEMORY_INIT_UPD #define FSP_MEM_UPD MEMORY_INIT_UPD

View File

@ -17,11 +17,12 @@
#ifndef _SOC_RAMSTAGE_H_ #ifndef _SOC_RAMSTAGE_H_
#define _SOC_RAMSTAGE_H_ #define _SOC_RAMSTAGE_H_
#include <chip.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <fsp/util.h> #include <fsp/util.h>
#include "../../../chip.h"
#define FSP_SIL_UPD FSP_S_CONFIG #define FSP_SIL_UPD FSP_S_CONFIG
#define FSP_MEM_UPD FSP_M_CONFIG #define FSP_MEM_UPD FSP_M_CONFIG

View File

@ -17,7 +17,6 @@
#include <arch/ebda.h> #include <arch/ebda.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -29,6 +28,8 @@
#include <soc/systemagent.h> #include <soc/systemagent.h>
#include <stdlib.h> #include <stdlib.h>
#include "chip.h"
size_t mmap_region_granularity(void) size_t mmap_region_granularity(void)
{ {
if (CONFIG(HAVE_SMI_HANDLER)) if (CONFIG(HAVE_SMI_HANDLER))

View File

@ -14,7 +14,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <chip.h>
#include <console/streams.h> #include <console/streams.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci_def.h> #include <device/pci_def.h>
@ -25,6 +24,8 @@
#include <soc/pei_data.h> #include <soc/pei_data.h>
#include <soc/pei_wrapper.h> #include <soc/pei_wrapper.h>
#include "chip.h"
static void ABI_X86 send_to_console(unsigned char b) static void ABI_X86 send_to_console(unsigned char b)
{ {
console_tx_byte(b); console_tx_byte(b);

View File

@ -16,7 +16,6 @@
*/ */
#include <bootstate.h> #include <bootstate.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/device.h> #include <device/device.h>
@ -28,6 +27,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pm.h> #include <soc/pm.h>
#include "chip.h"
void pmc_set_disb(void) void pmc_set_disb(void)
{ {
/* Set the DISB after DRAM init */ /* Set the DISB after DRAM init */

View File

@ -17,7 +17,6 @@
#include <arch/cbfs.h> #include <arch/cbfs.h>
#include <arch/early_variables.h> #include <arch/early_variables.h>
#include <assert.h> #include <assert.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <device/device.h> #include <device/device.h>
@ -37,6 +36,8 @@
#include <stdint.h> #include <stdint.h>
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include "../chip.h"
/* SOC initialization before RAM is enabled */ /* SOC initialization before RAM is enabled */
void soc_pre_ram_init(struct romstage_params *params) void soc_pre_ram_init(struct romstage_params *params)
{ {

View File

@ -20,7 +20,6 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <cbmem.h> #include <cbmem.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <fsp/util.h> #include <fsp/util.h>
@ -37,6 +36,8 @@
#include <timestamp.h> #include <timestamp.h>
#include <security/vboot/vboot_common.h> #include <security/vboot/vboot_common.h>
#include "../chip.h"
#define FSP_SMBIOS_MEMORY_INFO_GUID \ #define FSP_SMBIOS_MEMORY_INFO_GUID \
{ \ { \
0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \ 0xd4, 0x71, 0x20, 0x9b, 0x54, 0xb0, 0x0c, 0x4e, \

View File

@ -15,7 +15,6 @@
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <chip.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
@ -23,6 +22,8 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/thermal.h> #include <soc/thermal.h>
#include "chip.h"
#define MAX_TRIP_TEMP 205 #define MAX_TRIP_TEMP 205
#define DEFAULT_TRIP_TEMP 50 #define DEFAULT_TRIP_TEMP 50