summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/fsp_broadwell_de/Kconfig1
-rw-r--r--src/soc/intel/fsp_broadwell_de/Makefile.inc1
-rw-r--r--src/soc/intel/fsp_broadwell_de/spi.c7
3 files changed, 6 insertions, 3 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/Kconfig b/src/soc/intel/fsp_broadwell_de/Kconfig
index cc3e6e235a..37876b5482 100644
--- a/src/soc/intel/fsp_broadwell_de/Kconfig
+++ b/src/soc/intel/fsp_broadwell_de/Kconfig
@@ -26,6 +26,7 @@ config CPU_SPECIFIC_OPTIONS
select SMM_TSEG
select HAVE_SMI_HANDLER
select TSC_MONOTONIC_TIMER
+ select TSC_CONSTANT_RATE
config CBFS_SIZE
hex
diff --git a/src/soc/intel/fsp_broadwell_de/Makefile.inc b/src/soc/intel/fsp_broadwell_de/Makefile.inc
index 024035cef9..386adc1f5e 100644
--- a/src/soc/intel/fsp_broadwell_de/Makefile.inc
+++ b/src/soc/intel/fsp_broadwell_de/Makefile.inc
@@ -12,6 +12,7 @@ subdirs-y += ../../../lib/fsp
subdirs-y += fsp
romstage-y += gpio.c
+romstage-y += spi.c
ramstage-y += spi.c
ramstage-y += cpu.c
diff --git a/src/soc/intel/fsp_broadwell_de/spi.c b/src/soc/intel/fsp_broadwell_de/spi.c
index f60249105d..1b1589db5b 100644
--- a/src/soc/intel/fsp_broadwell_de/spi.c
+++ b/src/soc/intel/fsp_broadwell_de/spi.c
@@ -26,6 +26,7 @@
#include <device/pci_ids.h>
#include <spi_flash.h>
#include <spi-generic.h>
+#include <arch/early_variables.h>
#ifdef __SMM__
#define pci_read_config_byte(dev, reg, targ)\
@@ -59,7 +60,7 @@
typedef struct spi_slave ich_spi_slave;
-static int ichspi_lock = 0;
+static int ichspi_lock CAR_GLOBAL = 0;
typedef struct ich9_spi_regs {
uint32_t bfpr;
@@ -109,7 +110,7 @@ typedef struct ich_spi_controller {
uint32_t *bbar;
} ich_spi_controller;
-static ich_spi_controller cntlr;
+static ich_spi_controller cntlr CAR_GLOBAL;
enum {
SPIS_SCIP = 0x0001,
@@ -268,7 +269,7 @@ void spi_init(void)
uint8_t bios_cntl;
ich9_spi_regs *ich9_spi;
-#ifdef __SMM__
+#if defined(__SIMPLE_DEVICE__)
pci_devfn_t dev = PCI_DEV(0, 31, 0);
#else
struct device *dev;