
Hi,
On 26 June 2015 at 05:31, Haikun Wang haikun.wang@freescale.com wrote:
DSPI and QSPI only work when boot from QSPI on ls1021a. This patch only enable options in qspi boot defconfig.
Signed-off-by: Haikun Wang haikun.wang@freescale.com
Changes in v2:
- Add this defconfig patch to previous dataflash driver patches series
Test log on LS1021AQDS: => sf probe 1:0 SPI DataFlash: Detected at45db021d with page size 256 Bytes, erase size 256 Bytes, total 256 KiB, revision d => sf erase 0 40000 SF: 262144 bytes @ 0x0 Erased: OK => mw.b 82000000 33 40000 => sf write 82000000 0 40000 SF: 262144 bytes @ 0x0 Written: OK => sf read 83000000 0 40000 SF: 262144 bytes @ 0x0 Read: OK => cmp.b 82000000 83000000 40000 Total of 262144 byte(s) were the same => sf probe 0:0 SF: Detected S25FL128S_64K with page size 256 Bytes, erase size 64 KiB, total 16 MiB
Maybe you should use 'sf test'?
Test log on LS1021ATWR: => sf probe 0:0 SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
configs/ls1021aqds_qspi_defconfig | 4 ++++ configs/ls1021atwr_qspi_defconfig | 4 ++++ 2 files changed, 8 insertions(+)
diff --git a/configs/ls1021aqds_qspi_defconfig b/configs/ls1021aqds_qspi_defconfig index c5372b7..61d4552 100644 --- a/configs/ls1021aqds_qspi_defconfig +++ b/configs/ls1021aqds_qspi_defconfig @@ -2,3 +2,7 @@ CONFIG_ARM=y CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" CONFIG_CMD_NET=y +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-qds" +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_DM_SPI=y diff --git a/configs/ls1021atwr_qspi_defconfig b/configs/ls1021atwr_qspi_defconfig index 1ae0f9c..eb05f0a 100644 --- a/configs/ls1021atwr_qspi_defconfig +++ b/configs/ls1021atwr_qspi_defconfig @@ -2,3 +2,7 @@ CONFIG_ARM=y CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" CONFIG_CMD_NET=y +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-twr" +CONFIG_OF_CONTROL=y +CONFIG_DM=y
+CONFIG_DM_SPI=y
2.1.0.27.g96db324
Regards, Simon