summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-03 16:43:28 -0700
committerSimon Glass <sjg@chromium.org>2013-12-09 12:22:42 -0700
commitca9a501953ce945da8e76d86a0ddf070a7f729b8 (patch)
tree593134d6c0570f8abf4c41d0cd7de6f327b32695 /include/configs
parentffdb20bea16e00a326cc3d106f275e58bf302a0c (diff)
downloadu-boot-imx-ca9a501953ce945da8e76d86a0ddf070a7f729b8.zip
u-boot-imx-ca9a501953ce945da8e76d86a0ddf070a7f729b8.tar.gz
u-boot-imx-ca9a501953ce945da8e76d86a0ddf070a7f729b8.tar.bz2
sandbox: spi: Enable new spi/sf layers
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>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/sandbox.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index a4edc62..7e78a23 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