aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/chip.c
diff options
context:
space:
mode:
authorBarnali Sarkar <barnali.sarkar@intel.com>2017-03-28 16:32:33 +0530
committerFurquan Shaikh <furquan@google.com>2017-05-02 18:26:19 +0200
commite70142c9c2e2b7b4fbf8883790df72b6d5536c19 (patch)
treec5454fa0596e22b2e625a42c920793ac7664c117 /src/soc/intel/apollolake/chip.c
parent7146445be9618eb47895782912af28fb627c009d (diff)
soc/intel/apollolake: Clean up code by using common FAST_SPI module
This patch currently contains the following - 1. Use SOC_INTEL_COMMON_BLOCK_FAST_SPI kconfig for common FAST_SPI code. 2. Perform FAST_SPI programming by calling APIs from common FAST_SPI library. 3. Use common FAST_SPI header file. Change-Id: Ifd72734dadda541fe4c828e4f1716e532ec69c27 Signed-off-by: Barnali Sarkar <barnali.sarkar@intel.com> Reviewed-on: https://review.coreboot.org/19080 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/chip.c')
-rw-r--r--src/soc/intel/apollolake/chip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index 3108987329..5211f84383 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -24,6 +24,7 @@
#include <cpu/x86/mp.h>
#include <device/device.h>
#include <device/pci.h>
+#include <intelblocks/fast_spi.h>
#include <fsp/api.h>
#include <fsp/util.h>
#include <intelblocks/itss.h>
@@ -31,7 +32,6 @@
#include <soc/iomap.h>
#include <soc/itss.h>
#include <soc/cpu.h>
-#include <soc/flash_ctrlr.h>
#include <soc/intel/common/vbt.h>
#include <soc/nvs.h>
#include <soc/pci_devs.h>
@@ -578,7 +578,7 @@ void platform_fsp_notify_status(enum fsp_notify_phase phase)
*/
static void spi_flash_init_cb(void *unused)
{
- spi_flash_init();
+ fast_spi_init();
}
BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_ENTRY, spi_flash_init_cb, NULL);