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

login
register
mail settings
Submitter Simon Glass
Date June 24, 2013, 10:36 p.m.
Message ID <1372113389-9415-7-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/253982/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Simon Glass - June 24, 2013, 10:36 p.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>
---
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(+)

Patch

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 */