@@ -98,6 +98,16 @@ config SPI_FLASH_WINBOND
help
Add support for various Winbond SPI flash chips (W25xxx)
+config SPI_NOR_SANDBOX
+ bool "Support sandbox SPI flash device"
+ depends on SANDBOX
+ help
+ Since sandbox cannot access real devices, an emulation mechanism is
+ provided instead. Drivers can be connected up to the sandbox SPI
+ bus (see CONFIG_SANDBOX_SPI) and SPI traffic will be routed to this
+ device. Typically the contents of the emulated SPI flash device is
+ stored in a file on the host filesystem.
+
endif # MTD_SPI_NOR
config MTD_DATAFLASH
@@ -17,3 +17,4 @@ endif
obj-$(CONFIG_MTD_M25P80) += m25p80.o
obj-$(CONFIG_MTD_DATAFLASH) += mtd_dataflash.o
+obj-$(CONFIG_SPI_NOR_SANDBOX) += sandbox.o
To follow spi-nor notation replaced CONFIG_SPI_FLASH_SANDBOX with CONFIG_SPI_NOR_SANDBOX. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com> --- drivers/mtd/spi-nor/Kconfig | 10 ++++++++++ drivers/mtd/spi-nor/Makefile | 1 + 2 files changed, 11 insertions(+)