From: sbabic at denx.de <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 2/2] spi: nxp_fspi: Enable support for nxp,imx8mm-fspi
Date: Sat, 23 Jan 2021 16:50:08 +0100 (CET) [thread overview]
Message-ID: <20210123155008.3ACBA8283E@phobos.denx.de> (raw)
In-Reply-To: <20210118213250.727994-2-aford173@gmail.com>
> The i.MX8M Mini can use the FlexSPI driver. Add support
> for it to the driver.
> Signed-off-by: Adam Ford <aford173@gmail.com>
> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c
> index d74561578a..6c5bad4c2c 100644
> --- a/drivers/spi/nxp_fspi.c
> +++ b/drivers/spi/nxp_fspi.c
> @@ -320,6 +320,14 @@ static const struct nxp_fspi_devtype_data lx2160a_data = {
> .little_endian = true, /* little-endian */
> };
>
> +static const struct nxp_fspi_devtype_data imx8mm_data = {
> + .rxfifo = SZ_512, /* (64 * 64 bits) */
> + .txfifo = SZ_1K, /* (128 * 64 bits) */
> + .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */
> + .quirks = 0,
> + .little_endian = true, /* little-endian */
> +};
> +
> struct nxp_fspi {
> struct udevice *dev;
> void __iomem *iobase;
> @@ -985,6 +993,7 @@ static const struct dm_spi_ops nxp_fspi_ops = {
>
> static const struct udevice_id nxp_fspi_ids[] = {
> { .compatible = "nxp,lx2160a-fspi", .data = (ulong)&lx2160a_data, },
> + { .compatible = "nxp,imx8mm-fspi", .data = (ulong)&imx8mm_data, },
> { }
> };
>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2021-01-23 15:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 21:32 [PATCH 1/2] spi: nxp_fspi: Fix error reporting Adam Ford
2021-01-18 21:32 ` [PATCH 2/2] spi: nxp_fspi: Enable support for nxp,imx8mm-fspi Adam Ford
2021-01-23 15:50 ` sbabic at denx.de [this message]
2021-01-19 12:12 ` [PATCH 1/2] spi: nxp_fspi: Fix error reporting Pratyush Yadav
2021-02-23 12:59 ` Adam Ford
2021-02-26 9:41 ` 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=20210123155008.3ACBA8283E@phobos.denx.de \
--to=sbabic@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.