summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/config.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-03 16:43:26 -0700
committerSimon Glass <sjg@chromium.org>2013-12-09 12:22:18 -0700
commit6122813fa2cb9eef4a211bd47292322096db9fa8 (patch)
treee795422d0412c6093736dd1c31b72155e254a5b6 /arch/sandbox/include/asm/config.h
parentafb6134f30db2f97bae81ff56c7c9e4eee07b396 (diff)
downloadu-boot-imx-6122813fa2cb9eef4a211bd47292322096db9fa8.zip
u-boot-imx-6122813fa2cb9eef4a211bd47292322096db9fa8.tar.gz
u-boot-imx-6122813fa2cb9eef4a211bd47292322096db9fa8.tar.bz2
sandbox: spi: Add SPI emulation bus
This adds a SPI framework for people to hook up simulated SPI clients. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm/config.h')
-rw-r--r--arch/sandbox/include/asm/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/config.h b/arch/sandbox/include/asm/config.h
index 7755a4d..ec7729e 100644
--- a/arch/sandbox/include/asm/config.h
+++ b/arch/sandbox/include/asm/config.h
@@ -9,4 +9,12 @@
#define CONFIG_SANDBOX_ARCH
+/* Used by drivers/spi/sandbox_spi.c and arch/sandbox/include/asm/state.h */
+#ifndef CONFIG_SANDBOX_SPI_MAX_BUS
+#define CONFIG_SANDBOX_SPI_MAX_BUS 1
+#endif
+#ifndef CONFIG_SANDBOX_SPI_MAX_CS
+#define CONFIG_SANDBOX_SPI_MAX_CS 10
+#endif
+
#endif