[U-Boot] [PATCH v4 6/6] sandbox: spi: Enable new spi/sf layers

Simon Glass sjg at chromium.org
Tue Jun 25 00:36:29 CEST 2013


From: Mike Frysinger <vapier at gentoo.org>

We want to test SPI flash code in the sandbox, so enable the new drivers and
the 'sf test' command.

This command is used to validate the sandbox SPI / SPI flash implementation,
so enable it.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v4:
- Enable 'sf test' command on sandbox
- Enable support for winbond emulation as well as ST micro

Changes in v3: None
Changes in v2:
- No change log available in original v2 series

 include/configs/sandbox.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 369b808..33aaecd 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -67,6 +67,16 @@
 #define CONFIG_ENV_SIZE		8192
 #define CONFIG_ENV_IS_NOWHERE
 
+/* SPI */
+#define CONFIG_SANDBOX_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_CMD_SF_TEST
+#define CONFIG_CMD_SPI
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_SANDBOX
+#define CONFIG_SPI_FLASH_STMICRO
+#define CONFIG_SPI_FLASH_WINBOND
+
 #define CONFIG_SYS_HZ			1000
 
 /* Memory things - we don't really want a memory test */
-- 
1.8.3



More information about the U-Boot mailing list