diff options
author | Gong Qianyu <Qianyu.Gong@freescale.com> | 2016-01-25 15:16:05 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-01-27 08:28:49 -0800 |
commit | e0579a5852b3edb09f965dbbbd0b49507931be95 (patch) | |
tree | ae2ddecd149f9da0fde65fb8778d417944429ae2 /include | |
parent | 19c31285a33248e2cf95e8d44e012cd392bc04ad (diff) | |
download | u-boot-imx-e0579a5852b3edb09f965dbbbd0b49507931be95.zip u-boot-imx-e0579a5852b3edb09f965dbbbd0b49507931be95.tar.gz u-boot-imx-e0579a5852b3edb09f965dbbbd0b49507931be95.tar.bz2 |
armv8/ls1043aqds: add DSPI support
Enable three DSPI flash memories on board.
Commands:
=> sf probe 1:0
SF: Detected N25Q128A with page size 256 Bytes,
erase size 64 KiB, total 16 MiB
=> sf probe 1:1
SF: Detected SST25WF040B with page size 256 Bytes,
erase size 4 KiB, total 512 KiB
=> sf probe 1:2
SF: Detected EN25S64 with page size 256 Bytes,
erase size 64 KiB, total 8 MiB
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ls1043a_common.h | 12 | ||||
-rw-r--r-- | include/configs/ls1043ardb.h | 10 |
2 files changed, 12 insertions, 10 deletions
diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index e80ac27..35d9750 100644 --- a/include/configs/ls1043a_common.h +++ b/include/configs/ls1043a_common.h @@ -197,6 +197,18 @@ #define CONFIG_DOS_PARTITION #endif +/* DSPI */ +#define CONFIG_FSL_DSPI +#ifdef CONFIG_FSL_DSPI +#define CONFIG_CMD_SF +#define CONFIG_DM_SPI_FLASH +#define CONFIG_SPI_FLASH_STMICRO /* cs0 */ +#define CONFIG_SPI_FLASH_SST /* cs1 */ +#define CONFIG_SPI_FLASH_EON /* cs2 */ +#define CONFIG_SF_DEFAULT_BUS 1 +#define CONFIG_SF_DEFAULT_CS 0 +#endif + #define CONFIG_FSL_CAAM /* Enable SEC/CAAM */ /* FMan ucode */ diff --git a/include/configs/ls1043ardb.h b/include/configs/ls1043ardb.h index dbdcc51..506f50d 100644 --- a/include/configs/ls1043ardb.h +++ b/include/configs/ls1043ardb.h @@ -222,16 +222,6 @@ #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 -/* DSPI */ -#define CONFIG_FSL_DSPI -#ifdef CONFIG_FSL_DSPI -#define CONFIG_CMD_SF -#define CONFIG_DM_SPI_FLASH -#define CONFIG_SPI_FLASH_STMICRO -#define CONFIG_SF_DEFAULT_BUS 1 -#define CONFIG_SF_DEFAULT_CS 0 -#endif - /* * Environment */ |