diff options
author | Haikun Wang <Haikun.Wang@freescale.com> | 2015-06-29 07:38:46 (GMT) |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-06-29 19:10:10 (GMT) |
commit | e5493d4e49cb399c5a506f080fd8b4fa2faf3a19 (patch) | |
tree | 5548e2128ee01d832f08d1f4d39d7c9f3bd2677b /include/configs | |
parent | 69a27ea80b81ea38078a8657324516ec042ee49f (diff) | |
download | u-boot-e5493d4e49cb399c5a506f080fd8b4fa2faf3a19.tar.xz |
arm: ls102xa: Enable Driver Model SPI for ls1021aqds
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>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/ls1021aqds.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h index 5c9d275..46c609a 100644 --- a/include/configs/ls1021aqds.h +++ b/include/configs/ls1021aqds.h @@ -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 /* |