mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] drivers: mtd: nand: nand_mxs: enable nand_mxs on imx7
@ 2022-08-30  8:06 Johannes Zink
  2022-08-31  6:41 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Zink @ 2022-08-30  8:06 UTC (permalink / raw)
  To: barebox; +Cc: Johannes Zink

The i.MX7 GPMI NAND controller is completely backwards compatible with
the version of the IP on the i.MX6. There are additional features like
increased ECC strength, that we may want to use in future, but for now
treating it the same as an i.MX6 works without problems.

Since the gpmi_nand driver requires the MXS_APBH_DMA driver, also switch it on.

Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
---
 drivers/dma/Kconfig         | 2 +-
 drivers/mtd/nand/nand_mxs.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index 4802bf522d..46b9b90d82 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -3,7 +3,7 @@ menu "DMA support"
 
 config MXS_APBH_DMA
 	tristate "MXS APBH DMA ENGINE"
-	depends on ARCH_IMX23 || ARCH_IMX28 || ARCH_IMX6
+	depends on ARCH_IMX23 || ARCH_IMX28 || ARCH_IMX6 || ARCH_IMX7
 	select STMP_DEVICE
 	help
 	  Experimental!
diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
index 6f707f9b17..8991758e2b 100644
--- a/drivers/mtd/nand/nand_mxs.c
+++ b/drivers/mtd/nand/nand_mxs.c
@@ -2271,6 +2271,9 @@ static __maybe_unused struct of_device_id gpmi_dt_ids[] = {
 	}, {
 		.compatible = "fsl,imx6q-gpmi-nand",
 		.data = (void *)GPMI_IMX6,
+	}, {
+		.compatible = "fsl,imx7d-gpmi-nand",
+		.data = (void *)GPMI_IMX6,
 	}, {
 		/* sentinel */
 	}
-- 
2.30.2




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

end of thread, other threads:[~2022-08-31  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30  8:06 [PATCH] drivers: mtd: nand: nand_mxs: enable nand_mxs on imx7 Johannes Zink
2022-08-31  6:41 ` Sascha Hauer

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