public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/5 v1] mtd: spi-nor: fsl-quadspi: Add a variable in 'fsl_qspi_devtype_data' to enable platform specail feature
@ 2015-06-30  9:28 Haikun Wang
  2015-06-30  9:28 ` [PATCH 2/5 v1] mtd: spi-nor: fsl-quadspi: Wrap writel/readl with qspi_writel/qspi_readl Haikun Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Haikun Wang @ 2015-06-30  9:28 UTC (permalink / raw)
  To: linux-mtd, han.xu; +Cc: computersforpeace, dwmw2, Haikun Wang

Add a variable in struct fsl_qspi_devtype_data.
Add big endian registers flag.
Enable big endian registers flag for LS1021A.

Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
---
 drivers/mtd/spi-nor/fsl-quadspi.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 6cd14e4..40c7953 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -191,6 +191,9 @@
 #define SEQID_EN4B		10
 #define SEQID_BRWR		11
 
+/* Controller needs swap endian when access registers */
+#define QUADSPI_QUIRK_REGMAP_BE    (1 << 5)
+
 enum fsl_qspi_devtype {
 	FSL_QUADSPI_VYBRID,
 	FSL_QUADSPI_IMX6SX,
@@ -202,6 +205,7 @@ struct fsl_qspi_devtype_data {
 	int rxfifo;
 	int txfifo;
 	int ahb_buf_size;
+	int driver_data;
 };
 
 static struct fsl_qspi_devtype_data vybrid_data = {
@@ -222,7 +226,8 @@ static struct fsl_qspi_devtype_data ls1_data = {
 	.devtype = FSL_QUADSPI_LS1,
 	.rxfifo = 128,
 	.txfifo = 64,
-	.ahb_buf_size = 1024
+	.ahb_buf_size = 1024,
+	.driver_data = QUADSPI_QUIRK_REGMAP_BE
 };
 
 #define FSL_QSPI_MAX_CHIP	4
-- 
2.1.0.27.g96db324

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-07  3:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30  9:28 [PATCH 1/5 v1] mtd: spi-nor: fsl-quadspi: Add a variable in 'fsl_qspi_devtype_data' to enable platform specail feature Haikun Wang
2015-06-30  9:28 ` [PATCH 2/5 v1] mtd: spi-nor: fsl-quadspi: Wrap writel/readl with qspi_writel/qspi_readl Haikun Wang
2015-06-30  9:28 ` [PATCH 3/5 v4] mtd: spi-nor: fsl-quadspi: Enable support big endian registers Haikun Wang
2015-06-30  9:28 ` [PATCH 4/5 v1] mtd: spi-nor: fsl-quadspi: Add QSPI dts node for LS1021A Haikun Wang
2015-06-30  9:28 ` [PATCH 5/5 v1] mtd: spi-nor: fsl-quadspi: Update bindings documentation Haikun Wang
2015-07-06 22:32 ` [PATCH 1/5 v1] mtd: spi-nor: fsl-quadspi: Add a variable in 'fsl_qspi_devtype_data' to enable platform specail feature Brian Norris
2015-07-07  3:00   ` Wang Haikun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox