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

Haikun Wang haikun.wang at freescale.com
Fri Mar 27 06:05:22 CET 2015


From: Haikun Wang <Haikun.Wang at freescale.com>

Enable Driver Model SPI for ls1021aqds board.
DSPI and QSPI are compatible under Driver Model SPI.

Signed-off-by: Haikun Wang <Haikun.Wang at freescale.com>
---
 include/configs/ls1021aqds.h | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index 3c66f87..8adb709 100644
--- a/include/configs/ls1021aqds.h
+++ b/include/configs/ls1021aqds.h
@@ -415,10 +415,22 @@ unsigned long get_board_ddr_clk(void);
 #define QSPI0_AMBA_BASE			0x40000000
 #define FSL_QSPI_FLASH_SIZE		(1 << 24)
 #define FSL_QSPI_FLASH_NUM		2
+#define CONFIG_SPI_FLASH_SPANSION
+#endif
 
+/* DSPI */
+#define CONFIG_FSL_DSPI
+#define CONFIG_SPI_FLASH_ATMEL
+
+/* 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_SPANSION
 #endif
 
 /*
-- 
1.9.1



More information about the U-Boot mailing list