broadwell: Change all SoC headers to <soc/headername.h> system
This patch aligns broadwell to the new SoC header include scheme. BUG=None TEST=Tested with whole series. Compiled Auron and Samus. Change-Id: I0cb6aa3d17ce28890e586be1c2c7ad16d91dd925 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 23bcaa8110c4b63999c6ebf370045e9bef87ce6e Original-Change-Id: I613ec0e2b970c75d1f8f7d9bb454bcf11abc78f0 Original-Signed-off-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/224507 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9364 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
parent
18ea2d3fbd
commit
4ee4bd5bb0
|
@ -29,8 +29,8 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
#include <broadwell/acpi.h>
|
#include <soc/acpi.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
#include <ec/google/chromeec/ec_commands.h>
|
#include <ec/google/chromeec/ec_commands.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
|
|
||||||
/* SPI Write protect is GPIO 16 */
|
/* SPI Write protect is GPIO 16 */
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/acpi.h>
|
#include <soc/acpi.h>
|
||||||
|
|
||||||
void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef SAMUS_GPIO_H
|
#ifndef SAMUS_GPIO_H
|
||||||
#define SAMUS_GPIO_H
|
#define SAMUS_GPIO_H
|
||||||
|
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
#define SAMUS_GPIO_PP3300_AUTOBAHN_EN 23
|
#define SAMUS_GPIO_PP3300_AUTOBAHN_EN 23
|
||||||
#define SAMUS_GPIO_SSD_RESET_L 47
|
#define SAMUS_GPIO_SSD_RESET_L 47
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
|
|
||||||
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,12 +22,12 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <mainboard/google/samus/spd/spd.h>
|
#include <mainboard/google/samus/spd/spd.h>
|
||||||
#include <mainboard/google/samus/gpio.h>
|
#include <mainboard/google/samus/gpio.h>
|
||||||
|
|
||||||
|
|
|
@ -21,15 +21,15 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <elog.h>
|
#include <elog.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include "ec.h"
|
#include "ec.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
#include <cbfs.h>
|
#include <cbfs.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
#include <mainboard/google/samus/ec.h>
|
#include <mainboard/google/samus/ec.h>
|
||||||
#include <mainboard/google/samus/gpio.h>
|
#include <mainboard/google/samus/gpio.h>
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
#include <broadwell/acpi.h>
|
#include <soc/acpi.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
/* Compile-time settings for developer and recovery mode. */
|
/* Compile-time settings for developer and recovery mode. */
|
||||||
#define DEV_MODE_SETTING 1
|
#define DEV_MODE_SETTING 1
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/acpi.h>
|
#include <soc/acpi.h>
|
||||||
|
|
||||||
void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef INTEL_WTM2_GPIO_H
|
#ifndef INTEL_WTM2_GPIO_H
|
||||||
#define INTEL_WTM2_GPIO_H
|
#define INTEL_WTM2_GPIO_H
|
||||||
|
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
static const struct gpio_config mainboard_gpio_config[] = {
|
static const struct gpio_config mainboard_gpio_config[] = {
|
||||||
PCH_GPIO_NATIVE, /* 0: LPSS_UART1_RXD */
|
PCH_GPIO_NATIVE, /* 0: LPSS_UART1_RXD */
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
|
|
||||||
int mainboard_io_trap_handler(int smif)
|
int mainboard_io_trap_handler(int smif)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
|
|
||||||
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
|
|
||||||
void mainboard_romstage_entry(struct romstage_params *rp)
|
void mainboard_romstage_entry(struct romstage_params *rp)
|
||||||
|
|
|
@ -70,7 +70,7 @@ romstage-y += usbdebug.c
|
||||||
smm-y += usbdebug.c
|
smm-y += usbdebug.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CPPFLAGS_common += -Isrc/soc/intel/broadwell/
|
CPPFLAGS_common += -Isrc/soc/intel/broadwell/include
|
||||||
|
|
||||||
# Run an intermediate step when producing coreboot.rom
|
# Run an intermediate step when producing coreboot.rom
|
||||||
# that adds additional components to the final firmware
|
# that adds additional components to the final firmware
|
||||||
|
|
|
@ -34,14 +34,14 @@
|
||||||
#include <cpu/intel/turbo.h>
|
#include <cpu/intel/turbo.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#include <broadwell/acpi.h>
|
#include <soc/acpi.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* List of supported C-states in this processor. Only the ULT parts support C8,
|
* List of supported C-states in this processor. Only the ULT parts support C8,
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <soc/intel/broadwell/broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
|
||||||
Scope (\)
|
Scope (\)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <soc/intel/broadwell/broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
|
||||||
Name (_HID, EISAID ("PNP0A08")) // PCIe
|
Name (_HID, EISAID ("PNP0A08")) // PCIe
|
||||||
Name (_CID, EISAID ("PNP0A03")) // PCI
|
Name (_CID, EISAID ("PNP0A03")) // PCI
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <broadwell/adsp.h>
|
#include <soc/adsp.h>
|
||||||
#include <broadwell/device_nvs.h>
|
#include <soc/device_nvs.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
static void adsp_init(struct device *dev)
|
static void adsp_init(struct device *dev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <halt.h>
|
#include <halt.h>
|
||||||
#include <cpu/intel/microcode/microcode.c>
|
#include <cpu/intel/microcode/microcode.c>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
|
|
||||||
static void set_var_mtrr(
|
static void set_var_mtrr(
|
||||||
unsigned reg, unsigned base, unsigned size, unsigned type)
|
unsigned reg, unsigned base, unsigned size, unsigned type)
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <cpu/x86/tsc.h>
|
#include <cpu/x86/tsc.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/spi.h>
|
#include <soc/spi.h>
|
||||||
|
|
||||||
static void store_initial_timestamp(void)
|
static void store_initial_timestamp(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
static void bootblock_northbridge_init(void)
|
static void bootblock_northbridge_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
#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 <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
static void pci_domain_set_resources(device_t dev)
|
static void pci_domain_set_resources(device_t dev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,14 +36,14 @@
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <pc80/mc146818rtc.h>
|
#include <pc80/mc146818rtc.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/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[] = {
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
u32 cpu_family_model(void)
|
u32 cpu_family_model(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <broadwell/ehci.h>
|
#include <soc/ehci.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
|
|
||||||
static void usb_ehci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
static void usb_ehci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <elog.h>
|
#include <elog.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
|
|
||||||
static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
|
static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,12 +25,12 @@
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <spi-generic.h>
|
#include <spi-generic.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/me.h>
|
#include <soc/me.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/spi.h>
|
#include <soc/spi.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
const struct reg_script system_agent_finalize_script[] = {
|
const struct reg_script system_agent_finalize_script[] = {
|
||||||
REG_PCI_OR16(0x50, 1 << 0), /* GGC */
|
REG_PCI_OR16(0x50, 1 << 0), /* GGC */
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function will return a number that indicates which PIRQ
|
* This function will return a number that indicates which PIRQ
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <soc/intel/common/hda_verb.h>
|
#include <soc/intel/common/hda_verb.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
|
|
||||||
const u32 * cim_verb_data = NULL;
|
const u32 * cim_verb_data = NULL;
|
||||||
u32 cim_verb_data_size = 0;
|
u32 cim_verb_data_size = 0;
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <drivers/intel/gma/i915_reg.h>
|
#include <drivers/intel/gma/i915_reg.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
#define GT_RETRY 1000
|
#define GT_RETRY 1000
|
||||||
#define GT_CDCLK_337 0
|
#define GT_CDCLK_337 0
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define _BROADWELL_ACPI_H_
|
#define _BROADWELL_ACPI_H_
|
||||||
|
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
|
|
||||||
/* P-state configuration */
|
/* P-state configuration */
|
||||||
#define PSS_MAX_ENTRIES 8
|
#define PSS_MAX_ENTRIES 8
|
|
@ -22,7 +22,7 @@
|
||||||
#define _BROADWELL_NVS_H_
|
#define _BROADWELL_NVS_H_
|
||||||
|
|
||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#include <broadwell/device_nvs.h>
|
#include <soc/device_nvs.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* Miscellaneous */
|
/* Miscellaneous */
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef _BROADWELL_PEI_WRAPPER_H_
|
#ifndef _BROADWELL_PEI_WRAPPER_H_
|
||||||
#define _BROADWELL_PEI_WRAPPER_H_
|
#define _BROADWELL_PEI_WRAPPER_H_
|
||||||
|
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
|
|
||||||
typedef int ABI_X86 (*pei_wrapper_entry_t)(struct pei_data *pei_data);
|
typedef int ABI_X86 (*pei_wrapper_entry_t)(struct pei_data *pei_data);
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define _BROADWELL_RAMSTAGE_H_
|
#define _BROADWELL_RAMSTAGE_H_
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
void broadwell_init_pre_device(void *chip_info);
|
void broadwell_init_pre_device(void *chip_info);
|
||||||
void broadwell_init_cpus(device_t dev);
|
void broadwell_init_cpus(device_t dev);
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef _BROADWELL_RCBA_H_
|
#ifndef _BROADWELL_RCBA_H_
|
||||||
#define _BROADWELL_RCBA_H_
|
#define _BROADWELL_RCBA_H_
|
||||||
|
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
|
||||||
#define RCBA8(x) *((volatile u8 *)(RCBA_BASE_ADDRESS + x))
|
#define RCBA8(x) *((volatile u8 *)(RCBA_BASE_ADDRESS + x))
|
||||||
#define RCBA16(x) *((volatile u16 *)(RCBA_BASE_ADDRESS + x))
|
#define RCBA16(x) *((volatile u16 *)(RCBA_BASE_ADDRESS + x))
|
|
@ -21,7 +21,7 @@
|
||||||
#ifndef _BROADWELL_SYSTEMAGENT_H_
|
#ifndef _BROADWELL_SYSTEMAGENT_H_
|
||||||
#define _BROADWELL_SYSTEMAGENT_H_
|
#define _BROADWELL_SYSTEMAGENT_H_
|
||||||
|
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
|
||||||
#define SA_IGD_OPROM_VENDEV 0x80860406
|
#define SA_IGD_OPROM_VENDEV 0x80860406
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
|
|
||||||
#define IOBP_RETRY 1000
|
#define IOBP_RETRY 1000
|
||||||
|
|
||||||
|
|
|
@ -34,17 +34,17 @@
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <arch/acpigen.h>
|
#include <arch/acpigen.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
|
|
|
@ -35,13 +35,13 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <elog.h>
|
#include <elog.h>
|
||||||
#include <broadwell/me.h>
|
#include <soc/me.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
#if CONFIG_CHROMEOS
|
#if CONFIG_CHROMEOS
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/me.h>
|
#include <soc/me.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
|
||||||
static inline void me_read_dword_ptr(void *ptr, int offset)
|
static inline void me_read_dword_ptr(void *ptr, int offset)
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
static uintptr_t dpr_region_start(void)
|
static uintptr_t dpr_region_start(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <soc/intel/common/hda_verb.h>
|
#include <soc/intel/common/hda_verb.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
|
|
||||||
static const u32 minihd_verb_table[] = {
|
static const u32 minihd_verb_table[] = {
|
||||||
/* coreboot specific header */
|
/* coreboot specific header */
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
|
|
||||||
static struct monotonic_counter {
|
static struct monotonic_counter {
|
||||||
int initialized;
|
int initialized;
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/serialio.h>
|
#include <soc/serialio.h>
|
||||||
#include <broadwell/spi.h>
|
#include <soc/spi.h>
|
||||||
|
|
||||||
u8 pch_revision(void)
|
u8 pch_revision(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,14 +24,14 @@
|
||||||
#include <device/pciexp.h>
|
#include <device/pciexp.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
|
|
||||||
static void pcie_update_cfg8(device_t dev, int reg, u8 mask, u8 or);
|
static void pcie_update_cfg8(device_t dev, int reg, u8 mask, u8 or);
|
||||||
static void pcie_update_cfg(device_t dev, int reg, u32 mask, u32 or);
|
static void pcie_update_cfg(device_t dev, int reg, u32 mask, u32 or);
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <console/streams.h>
|
#include <console/streams.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
|
|
||||||
static void ABI_X86 send_to_console(unsigned char b)
|
static void ABI_X86 send_to_console(unsigned char b)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,11 +27,11 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/gpio.h>
|
#include <soc/gpio.h>
|
||||||
|
|
||||||
/* Print status bits with descriptive names */
|
/* Print status bits with descriptive names */
|
||||||
static void print_status_bits(u32 status, const char *bit_names[])
|
static void print_status_bits(u32 status, const char *bit_names[])
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
/* Save bit index for first enabled event in PM1_STS for \_SB._SWS */
|
/* Save bit index for first enabled event in PM1_STS for \_SB._SWS */
|
||||||
static void s3_save_acpi_wake_source(global_nvs_t *gnvs)
|
static void s3_save_acpi_wake_source(global_nvs_t *gnvs)
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
#if IS_ENABLED(CONFIG_CHROMEOS)
|
#if IS_ENABLED(CONFIG_CHROMEOS)
|
||||||
#include <vendorcode/google/chromeos/vboot_handoff.h>
|
#include <vendorcode/google/chromeos/vboot_handoff.h>
|
||||||
#endif
|
#endif
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
|
|
||||||
static inline struct ramstage_cache *next_cache(struct ramstage_cache *c)
|
static inline struct ramstage_cache *next_cache(struct ramstage_cache *c)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <halt.h>
|
#include <halt.h>
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
#include <broadwell/reset.h>
|
#include <soc/reset.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Soft reset (INIT# to cpu) - write 0x1 to I/O 0x92
|
* Soft reset (INIT# to cpu) - write 0x1 to I/O 0x92
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
u32 cpu_family_model(void)
|
u32 cpu_family_model(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,15 +22,15 @@
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <broadwell/smbus.h>
|
#include <soc/smbus.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
const struct reg_script pch_early_init_script[] = {
|
const struct reg_script pch_early_init_script[] = {
|
||||||
/* Setup southbridge BARs */
|
/* Setup southbridge BARs */
|
||||||
|
|
|
@ -28,11 +28,11 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
static struct chipset_power_state power_state CAR_GLOBAL;
|
static struct chipset_power_state power_state CAR_GLOBAL;
|
||||||
|
|
||||||
|
|
|
@ -31,14 +31,14 @@
|
||||||
#endif
|
#endif
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
#include <soc/intel/common/mrc_cache.h>
|
#include <soc/intel/common/mrc_cache.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pei_wrapper.h>
|
#include <soc/pei_wrapper.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/reset.h>
|
#include <soc/reset.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find PEI executable in coreboot filesystem and execute it.
|
* Find PEI executable in coreboot filesystem and execute it.
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
u32 cpuid;
|
u32 cpuid;
|
||||||
|
|
|
@ -31,12 +31,12 @@
|
||||||
#include <ramstage_cache.h>
|
#include <ramstage_cache.h>
|
||||||
#include <romstage_handoff.h>
|
#include <romstage_handoff.h>
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
#include <broadwell/me.h>
|
#include <soc/me.h>
|
||||||
#include <broadwell/pei_data.h>
|
#include <soc/pei_data.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/reset.h>
|
#include <soc/reset.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <broadwell/spi.h>
|
#include <soc/spi.h>
|
||||||
|
|
||||||
/* Entry from cache-as-ram.inc. */
|
/* Entry from cache-as-ram.inc. */
|
||||||
void * asmlinkage romstage_main(unsigned long bist,
|
void * asmlinkage romstage_main(unsigned long bist,
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/smbus.h>
|
#include <soc/smbus.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
static const struct reg_script smbus_init_script[] = {
|
static const struct reg_script smbus_init_script[] = {
|
||||||
/* Set SMBUS I/O base address */
|
/* Set SMBUS I/O base address */
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <broadwell/spi.h>
|
#include <soc/spi.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
#define SPI_DELAY 10 /* 10us */
|
#define SPI_DELAY 10 /* 10us */
|
||||||
#define SPI_RETRY 200000 /* 2s */
|
#define SPI_RETRY 200000 /* 2s */
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
static inline uint32_t *stack_push(u32 *stack, u32 value)
|
static inline uint32_t *stack_push(u32 *stack, u32 value)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
static const struct reg_script systemagent_early_init_script[] = {
|
static const struct reg_script systemagent_early_init_script[] = {
|
||||||
REG_PCI_WRITE32(MCHBAR, MCH_BASE_ADDRESS | 1),
|
REG_PCI_WRITE32(MCHBAR, MCH_BASE_ADDRESS | 1),
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <uart8250.h>
|
#include <uart8250.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/serialio.h>
|
#include <soc/serialio.h>
|
||||||
|
|
||||||
const struct reg_script uart_init[] = {
|
const struct reg_script uart_init[] = {
|
||||||
/* Set MMIO BAR */
|
/* Set MMIO BAR */
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/sata.h>
|
#include <soc/sata.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
static inline u32 sir_read(struct device *dev, int idx)
|
static inline u32 sir_read(struct device *dev, int idx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
#include <device/pciexp.h>
|
#include <device/pciexp.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <broadwell/iobp.h>
|
#include <soc/iobp.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/serialio.h>
|
#include <soc/serialio.h>
|
||||||
#include <chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
|
|
||||||
/* Set D3Hot Power State in ACPI mode */
|
/* Set D3Hot Power State in ACPI mode */
|
||||||
static void serialio_enable_d3hot(struct resource *res)
|
static void serialio_enable_d3hot(struct resource *res)
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/smbus.h>
|
#include <soc/smbus.h>
|
||||||
|
|
||||||
static void pch_smbus_init(device_t dev)
|
static void pch_smbus_init(device_t dev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
#include <device/smbus_def.h>
|
#include <device/smbus_def.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/smbus.h>
|
#include <soc/smbus.h>
|
||||||
|
|
||||||
static void smbus_delay(void)
|
static void smbus_delay(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
#include <cpu/x86/cache.h>
|
#include <cpu/x86/cache.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pch.h>
|
#include <soc/pch.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
|
|
||||||
void southbridge_smm_clear_state(void)
|
void southbridge_smm_clear_state(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
#include <elog.h>
|
#include <elog.h>
|
||||||
#include <halt.h>
|
#include <halt.h>
|
||||||
#include <pc80/mc146818rtc.h>
|
#include <pc80/mc146818rtc.h>
|
||||||
#include <broadwell/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <broadwell/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <broadwell/rcba.h>
|
#include <soc/rcba.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <broadwell/xhci.h>
|
#include <soc/xhci.h>
|
||||||
|
|
||||||
static u8 smm_initialized = 0;
|
static u8 smm_initialized = 0;
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,11 @@
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
/* This gets filled in and used during relocation. */
|
/* This gets filled in and used during relocation. */
|
||||||
static struct smm_relocation_params smm_reloc_params;
|
static struct smm_relocation_params smm_reloc_params;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <spi-generic.h>
|
#include <spi-generic.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
|
|
||||||
#ifdef __SMM__
|
#ifdef __SMM__
|
||||||
#define pci_read_config_byte(dev, reg, targ)\
|
#define pci_read_config_byte(dev, reg, targ)\
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <ramstage_cache.h>
|
#include <ramstage_cache.h>
|
||||||
#include <broadwell/smm.h>
|
#include <soc/smm.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
struct ramstage_cache *ramstage_cache_location(long *size)
|
struct ramstage_cache *ramstage_cache_location(long *size)
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
|
|
||||||
u8 systemagent_revision(void)
|
u8 systemagent_revision(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <cpu/x86/tsc.h>
|
#include <cpu/x86/tsc.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
#include <broadwell/msr.h>
|
#include <soc/msr.h>
|
||||||
|
|
||||||
unsigned long tsc_freq_mhz(void)
|
unsigned long tsc_freq_mhz(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <usbdebug.h>
|
#include <usbdebug.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <broadwell/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
|
|
||||||
void set_debug_port(unsigned int port)
|
void set_debug_port(unsigned int port)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <broadwell/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <broadwell/xhci.h>
|
#include <soc/xhci.h>
|
||||||
#include <broadwell/cpu.h>
|
#include <soc/cpu.h>
|
||||||
|
|
||||||
#ifdef __SMM__
|
#ifdef __SMM__
|
||||||
static u8 *usb_xhci_mem_base(device_t dev)
|
static u8 *usb_xhci_mem_base(device_t dev)
|
||||||
|
|
Loading…
Reference in New Issue