From 6122813fa2cb9eef4a211bd47292322096db9fa8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 3 Dec 2013 16:43:26 -0700 Subject: sandbox: spi: Add SPI emulation bus This adds a SPI framework for people to hook up simulated SPI clients. Signed-off-by: Mike Frysinger Signed-off-by: Simon Glass --- arch/sandbox/include/asm/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/sandbox/include/asm/config.h') 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 -- cgit v1.2.3-70-g09d2