From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] arm: ls102xa: Enable Driver Model SPI for ls1021aqds
Date: Sun, 28 Jun 2015 00:01:58 +0530 [thread overview]
Message-ID: <1435429920-32466-4-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>
Enable Driver Model SPI for ls1021aqds board.
DSPI and QSPI is enabled only when boot from QSPI.
DSPI and QSPI are compatible under Driver Model SPI.
Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
---
Changes in v7:
- Rebase to master
Changes in v4:
- Add defconfig patch in this series
Changes in v3:
- Remove CONFIG_SPI_FLASH_ATMEL
- IS_ENABLED(CONFIG_XXX) is only work with configure option in Kconfig,
and DM core code use IS_ENABLED(), so configure option in head file
can't work, so remove CONFIG_OF_CONTROL CONFIG_OF_SEPARATE CONFIG_DM CONFIG_DM_SPI
Changes in v2:
- Move all changes inside of CONFIG_QSPI_BOOT
include/configs/ls1021aqds.h | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index 5c9d275..973454b 100644
--- a/include/configs/ls1021aqds.h
+++ b/include/configs/ls1021aqds.h
@@ -407,15 +407,24 @@ unsigned long get_board_ddr_clk(void);
#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_SPANSION
+/* DSPI */
+#define CONFIG_FSL_DSP
+
+/* DM SPI */
+#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
#define CONFIG_CMD_SF
-#define CONFIG_SPI_FLASH_SPANSION
+#define CONFIG_DM_SPI_FLASH
+#define CONFIG_SF_DATAFLASH
+#endif
#endif
/*
--
1.9.1
next prev parent reply other threads:[~2015-06-27 18:31 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 ` Jagan Teki [this message]
2015-06-29 3:21 ` [U-Boot] [PATCH 3/5] arm: ls102xa: Enable Driver Model SPI for ls1021aqds 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 ` [U-Boot] [PATCH 5/5] defconfig: ls1021a: Add OF_CONTROL and DM support Jagan Teki
2015-06-29 7:49 ` 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-4-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