[U-Boot] [PATCH 3/3 v1] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

From: Haikun Wang Haikun.Wang@freescale.com
Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI are compatible under Driver Model SPI.
Signed-off-by: Haikun Wang Haikun.Wang@freescale.com --- include/configs/ls1021atwr.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 0a0bb5f..6aeecda 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -235,9 +235,18 @@ #define FSL_QSPI_FLASH_SIZE (1 << 24) #define FSL_QSPI_FLASH_NUM 2
+#define CONFIG_SPI_FLASH_STMICRO +#endif + +/* DM SPI */ +#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI) +#define CONFIG_OF_CONTROL +#define CONFIG_OF_SEPARATE +#define CONFIG_DM +#define CONFIG_DM_SPI #define CONFIG_CMD_SF +#define CONFIG_DM_SPI_FLASH #define CONFIG_SPI_FLASH -#define CONFIG_SPI_FLASH_STMICRO #endif
/*
participants (1)
-
Haikun Wang