From 5b71b33aba6cb0108a864cc7000918b8f06b139a Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Sat, 25 Jul 2015 02:14:13 -0700 Subject: common: change interface to SPI flash Allow more than one SPI master. Add CONFIG variables to address the system SPI flash. To have SPI master ports, spi_ports array must be defined. BRANCH=smaug TEST=compile BUG=chrome-os-partner:42304 Change-Id: Id43869f648965c1582b7be1c7fb3a38f175fda95 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/288512 Commit-Queue: David James --- board/discovery-stm32f072/board.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'board/discovery-stm32f072/board.h') diff --git a/board/discovery-stm32f072/board.h b/board/discovery-stm32f072/board.h index ef839bfc49..2e57167604 100644 --- a/board/discovery-stm32f072/board.h +++ b/board/discovery-stm32f072/board.h @@ -49,8 +49,9 @@ #define CONFIG_USB_GPIO /* Enable control of SPI over USB */ -#define CONFIG_SPI_MASTER_PORT 2 -#define CONFIG_SPI_CS_GPIO GPIO_SPI_CS +#define CONFIG_SPI_MASTER +#define CONFIG_SPI_FLASH_PORT 0 /* First SPI master port */ + #define CONFIG_USB_SPI -- cgit v1.2.1