public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] defconfig: ls1021a: Add OF_CONTROL and DM support
Date: Sun, 28 Jun 2015 00:02:00 +0530	[thread overview]
Message-ID: <1435429920-32466-6-git-send-email-jteki@openedev.com> (raw)
In-Reply-To: <1435429920-32466-1-git-send-email-jteki@openedev.com>

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
-- 
1.9.1

  parent reply	other threads:[~2015-06-27 18:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 18:31 [U-Boot] [PATCH v7 0/5] sf: Add dataflash support Jagan Teki
2015-06-27 18:31 ` [U-Boot] [PATCH 1/5] dm: sf: Add Atmel DataFlash spi flash driver Jagan Teki
2015-06-29  7:48   ` Wang Haikun
2015-06-27 18:31 ` [U-Boot] [PATCH 2/5] dm: ls1021aqds: dts: Use "spi_dataflash" driver instead of "spi_flash_std" for DSPI flash Jagan Teki
2015-06-29  7:48   ` Wang Haikun
2015-06-27 18:31 ` [U-Boot] [PATCH 3/5] arm: ls102xa: Enable Driver Model SPI for ls1021aqds Jagan Teki
2015-06-29  3:21   ` Wang Haikun
2015-06-27 18:31 ` [U-Boot] [PATCH 4/5] arm: ls102xa: Enable Driver Model SPI for ls1021atwr Jagan Teki
2015-06-29  7:48   ` Wang Haikun
2015-06-27 18:32 ` Jagan Teki [this message]
2015-06-29  7:49   ` [U-Boot] [PATCH 5/5] defconfig: ls1021a: Add OF_CONTROL and DM support Wang Haikun
2015-06-27 18:35 ` [U-Boot] [PATCH v7 0/5] sf: Add dataflash support Jagan Teki
2015-06-27 18:36   ` Jagan Teki
2015-06-29  3:23     ` Wang Haikun
2015-06-29 19:52       ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435429920-32466-6-git-send-email-jteki@openedev.com \
    --to=jteki@openedev.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox