aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/include
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2016-11-21 12:41:20 -0800
committerMartin Roth <martinroth@google.com>2016-12-07 20:23:01 +0100
commitd6c555971b9f9f0c2d49269b0874e3480258531a (patch)
treed6dfa1bcbf1f122cac1b3f62f6eb0a86901c45ac /src/soc/intel/apollolake/include
parentb5d41cb063a54d2a90e0480ede18d3b9c1ae8474 (diff)
soc/intel/apollolake: Use the new SPI driver interface
1. Define controller for fast SPI. 2. Separate out functions that are specific to SPI and flash controller in different files. BUG=chrome-os-partner:59832 BRANCH=None TEST=Compiles successfully for reef. Change-Id: If07db9d27bbf4f4eb6024175cb7753c6cf4fb793 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17562 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/apollolake/include')
-rw-r--r--src/soc/intel/apollolake/include/soc/flash_ctrlr.h (renamed from src/soc/intel/apollolake/include/soc/spi.h)6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/include/soc/spi.h b/src/soc/intel/apollolake/include/soc/flash_ctrlr.h
index 4f16a85717..5b9c6222b3 100644
--- a/src/soc/intel/apollolake/include/soc/spi.h
+++ b/src/soc/intel/apollolake/include/soc/flash_ctrlr.h
@@ -84,8 +84,10 @@
* Reads status register. On success returns 0 and status contains the value
* read from the status register. On error returns -1.
*/
-int spi_read_status(uint8_t *status);
+int spi_flash_read_status(uint8_t *status);
/* Read SPI controller register. */
-uint32_t spi_ctrlr_reg_read(uint16_t reg);
+uint32_t spi_flash_ctrlr_reg_read(uint16_t reg);
+
+void spi_flash_init(void);
#endif