diff options
author | Haikun Wang <Haikun.Wang@freescale.com> | 2015-06-27 21:46:13 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-06-30 00:40:11 +0530 |
commit | 9dd3d3c00c3125f510b899b89432586bf260a3de (patch) | |
tree | 054d6c792322dc15a89bcff99404030df6be05ea | |
parent | e5493d4e49cb399c5a506f080fd8b4fa2faf3a19 (diff) | |
download | u-boot-imx-9dd3d3c00c3125f510b899b89432586bf260a3de.zip u-boot-imx-9dd3d3c00c3125f510b899b89432586bf260a3de.tar.gz u-boot-imx-9dd3d3c00c3125f510b899b89432586bf260a3de.tar.bz2 |
arm: ls102xa: Enable Driver Model SPI for ls1021atwr
Enable Driver Model SPI for ls1021atwr board.
DSPI and QSPI only be enabled when boot from QSPI.
DSPI and QSPI are compatible under Driver Model SPI.
Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Tested-by: Haikun Wang <haikun.wang@freescale.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
-rw-r--r-- | include/configs/ls1021atwr.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 446d562..233b3d0 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -250,15 +250,20 @@ #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 /* |