]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/configs/ls1021atwr.h
arm: ls102xa: Enable Driver Model SPI for ls1021atwr
[karo-tx-uboot.git] / include / configs / ls1021atwr.h
index d58939758aebe56052c80a5a02bb2d7288ac0c02..a9dc4022e0bce079be8c8435b8e7b2a55a157aef 100644 (file)
 #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_STMICRO
 
+/* DM SPI */
+#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
 #define CONFIG_CMD_SF
-#define CONFIG_SPI_FLASH_STMICRO
+#define CONFIG_DM_SPI_FLASH
+#endif
 #endif
 
 /*