summaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-11 06:08:08 +0000
committerSimon Glass <sjg@chromium.org>2013-03-19 08:45:37 -0700
commitbb8215f437a7c948eec82a6abe754c226978bd6d (patch)
tree8e03252d3317225986dee7d9e58ee4dd32123d9f /include/spi_flash.h
parent5e6fb69778fa41e685add00b73ed5f22c7a96166 (diff)
sf: Enable FDT-based configuration and memory mapping
Enable device tree control of SPI flash, and use this to implement memory-mapped SPI flash, which is supported on Intel chips. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 030d49cb71..3b6a44edce 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -39,6 +39,7 @@ struct spi_flash {
/* Erase (sector) size */
u32 sector_size;
+ void *memory_map; /* Address of read-only SPI flash access */
int (*read)(struct spi_flash *flash, u32 offset,
size_t len, void *buf);
int (*write)(struct spi_flash *flash, u32 offset,