Patchwork [U-Boot,3/3,v3] sandbox: enable new spi/sf layers

login
register
mail settings
Submitter Mike Frysinger
Date March 12, 2012, 3:22 p.m.
Message ID <1331565738-18509-4-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/146129/
State Deferred
Delegated to: Simon Glass
Headers show

Comments

Mike Frysinger - March 12, 2012, 3:22 p.m.
We want to test SPI flash code in the sandbox, so enable the new drivers.

Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
v3
	- no changes wrt v2

 include/configs/sandbox.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index a58a34e..236acdf 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -61,6 +61,13 @@ 
 #define CONFIG_ENV_SIZE		8192
 #define CONFIG_ENV_IS_NOWHERE
 
+/* SPI */
+#define CONFIG_SANDBOX_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_SANDBOX
+#define CONFIG_SPI_FLASH_STMICRO
+
 #define CONFIG_SYS_HZ			1000
 
 /* Memory things - we don't really want a memory test */