mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Johannes Zink <j.zink@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] drivers: mtd: nand: nand_mxs: enable nand_mxs on imx7
Date: Wed, 31 Aug 2022 08:41:53 +0200	[thread overview]
Message-ID: <20220831064153.GL24324@pengutronix.de> (raw)
In-Reply-To: <20220830080613.438124-1-j.zink@pengutronix.de>

On Tue, Aug 30, 2022 at 10:06:13AM +0200, Johannes Zink wrote:
> 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(-)

Applied, thanks

Sascha

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

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2022-08-31  6:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-30  8:06 Johannes Zink
2022-08-31  6:41 ` Sascha Hauer [this message]

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=20220831064153.GL24324@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=j.zink@pengutronix.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