]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: Move CONFIG_SPI_FLASH_SANDBOX to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 6 Mar 2015 20:19:06 +0000 (13:19 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:28:59 +0000 (22:28 +0200)
Move this over to Kconfig and tidy up.

Signed-off-by: Simon Glass <sjg@chromium.org>
configs/sandbox_defconfig
drivers/mtd/spi/Kconfig
include/configs/sandbox.h

index a5b9935627a88e4aebea6c4fd08a3aa1adf00653..82d563d3ad8601b3a6d51dc3a363945aa899a220 100644 (file)
@@ -23,3 +23,4 @@ CONFIG_SANDBOX_GPIO=y
 CONFIG_SYS_VSNPRINTF=y
 CONFIG_SYS_I2C_SANDBOX=y
 CONFIG_SANDBOX_SPI=y
+CONFIG_SPI_FLASH_SANDBOX=y
index fd2d7acbeabf28a55acc792d7ba00a4447def499..ac6d09f9286909e7698aea7994f7cd2eeaec045f 100644 (file)
@@ -12,3 +12,13 @@ config DM_SPI_FLASH
          during the transition parent. SPI and SPI flash must be
          enabled together (it is not possible to use driver model
          for one and not the other).
+
+config SPI_FLASH_SANDBOX
+       bool "Support sandbox SPI flash device"
+       depends on SANDBOX && DM_SPI_FLASH
+       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.
index b77a866fea14b913136967c76db6e8f00b4d1a33..5f72f6a4c986fef3bb5f43f66ac06fc296449fa8 100644 (file)
@@ -87,7 +87,6 @@
 #define CONFIG_SPI_FLASH_EON
 #define CONFIG_SPI_FLASH_GIGADEVICE
 #define CONFIG_SPI_FLASH_MACRONIX
-#define CONFIG_SPI_FLASH_SANDBOX
 #define CONFIG_SPI_FLASH_SPANSION
 #define CONFIG_SPI_FLASH_SST
 #define CONFIG_SPI_FLASH_STMICRO