]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: ls102xa: Enable Driver Model SPI for ls1021aqds
authorHaikun Wang <Haikun.Wang@freescale.com>
Mon, 29 Jun 2015 07:38:46 +0000 (13:08 +0530)
committerJagan Teki <jteki@openedev.com>
Mon, 29 Jun 2015 19:10:10 +0000 (00:40 +0530)
Enable Driver Model SPI for ls1021aqds board.
DSPI and QSPI is enabled only when boot from QSPI.
DSPI and QSPI are compatible under Driver Model SPI.

Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
Tested-by: Haikun Wang <haikun.wang@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
include/configs/ls1021aqds.h

index 5c9d275ebe3b42c493c3d37bdffc8fc8359d3b86..46c609af893ca2105cf80ae733d6d244d80db6e1 100644 (file)
@@ -407,15 +407,24 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
 
-/* QSPI */
+/* SPI */
 #ifdef CONFIG_QSPI_BOOT
+/* QSPI */
 #define CONFIG_FSL_QSPI
 #define QSPI0_AMBA_BASE                        0x40000000
 #define FSL_QSPI_FLASH_SIZE            (1 << 24)
 #define FSL_QSPI_FLASH_NUM             2
+#define CONFIG_SPI_FLASH_SPANSION
 
+/* DSPI */
+#define CONFIG_FSL_DSPI
+
+/* DM SPI */
+#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
 #define CONFIG_CMD_SF
-#define CONFIG_SPI_FLASH_SPANSION
+#define CONFIG_DM_SPI_FLASH
+#define CONFIG_SF_DATAFLASH
+#endif
 #endif
 
 /*