diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2013-12-03 16:43:26 -0700 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2013-12-09 12:22:18 -0700 |
| commit | 6122813fa2cb9eef4a211bd47292322096db9fa8 (patch) | |
| tree | e795422d0412c6093736dd1c31b72155e254a5b6 /arch/sandbox/include/asm/config.h | |
| parent | afb6134f30db2f97bae81ff56c7c9e4eee07b396 (diff) | |
| download | olio-uboot-2014.01-6122813fa2cb9eef4a211bd47292322096db9fa8.tar.xz olio-uboot-2014.01-6122813fa2cb9eef4a211bd47292322096db9fa8.zip | |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/config.h b/arch/sandbox/include/asm/config.h index 7755a4def..ec7729eb4 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 |