Message ID | 1435429920-32466-6-git-send-email-jteki@openedev.com |
---|---|
State | Accepted |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
On 6/28/2015 2:32 AM, Jagan Teki wrote: > From: Haikun Wang <Haikun.Wang@freescale.com> > > PI and QSPI only work when boot from QSPI on ls1021a. > This patch only enable options in qspi boot defconfig. > > 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 > > Test log on LS1021ATWR: > => sf probe 0:0 > SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB > > Signed-off-by: Haikun Wang <haikun.wang@freescale.com> > Signed-off-by: Jagan Teki <jteki@openedev.com> > --- > Changes in v7: > - Rebase to master > > Changes in v2: > - Add this defconfig patch to previous dataflash driver patches series > > 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 1db9129..6a1f711 100644 > --- a/configs/ls1021aqds_qspi_defconfig > +++ b/configs/ls1021aqds_qspi_defconfig > @@ -3,4 +3,8 @@ CONFIG_TARGET_LS1021AQDS=y > CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" > # CONFIG_CMD_IMLS is not set > # CONFIG_CMD_SETEXPR is not set > +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-qds" > +CONFIG_OF_CONTROL=y > +CONFIG_DM=y > +CONFIG_DM_SPI=y > CONFIG_SPI_FLASH=y > diff --git a/configs/ls1021atwr_qspi_defconfig b/configs/ls1021atwr_qspi_defconfig > index 9eb88b3..420cfe7 100644 > --- a/configs/ls1021atwr_qspi_defconfig > +++ b/configs/ls1021atwr_qspi_defconfig > @@ -3,4 +3,8 @@ CONFIG_TARGET_LS1021ATWR=y > CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" > # CONFIG_CMD_IMLS is not set > # CONFIG_CMD_SETEXPR is not set > +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-twr" > +CONFIG_OF_CONTROL=y > +CONFIG_DM=y > +CONFIG_DM_SPI=y > CONFIG_SPI_FLASH=y > Tested-by: Haikun Wang <haikun.wang@freescale.com>
diff --git a/configs/ls1021aqds_qspi_defconfig b/configs/ls1021aqds_qspi_defconfig index 1db9129..6a1f711 100644 --- a/configs/ls1021aqds_qspi_defconfig +++ b/configs/ls1021aqds_qspi_defconfig @@ -3,4 +3,8 @@ CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" # CONFIG_CMD_IMLS is not set # CONFIG_CMD_SETEXPR is not set +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-qds" +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_DM_SPI=y CONFIG_SPI_FLASH=y diff --git a/configs/ls1021atwr_qspi_defconfig b/configs/ls1021atwr_qspi_defconfig index 9eb88b3..420cfe7 100644 --- a/configs/ls1021atwr_qspi_defconfig +++ b/configs/ls1021atwr_qspi_defconfig @@ -3,4 +3,8 @@ CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT" # CONFIG_CMD_IMLS is not set # CONFIG_CMD_SETEXPR is not set +CONFIG_DEFAULT_DEVICE_TREE="ls1021a-twr" +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_DM_SPI=y CONFIG_SPI_FLASH=y