Patchwork [U-Boot,7/7] sandbox: spi: Enable new spi/sf layers

login
register
mail settings
Submitter Simon Glass
Date Nov. 10, 2013, 2:37 a.m.
Message ID <1384051068-11659-7-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/290024/
State Superseded, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - Nov. 10, 2013, 2:37 a.m.
From: Mike Frysinger <vapier@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@gentoo.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
---
 include/configs/sandbox.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 0884ad3..5868753 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -71,6 +71,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
+
 /* Memory things - we don't really want a memory test */
 #define CONFIG_SYS_LOAD_ADDR		0x00000000
 #define CONFIG_SYS_MEMTEST_START	0x00100000