* [PATCH v2] mtd: fsl-quadspi: add support for ls2080a/ls1080a
@ 2018-01-30 17:19 Yogesh Gaur
2018-05-18 20:04 ` Boris Brezillon
0 siblings, 1 reply; 2+ messages in thread
From: Yogesh Gaur @ 2018-01-30 17:19 UTC (permalink / raw)
To: linux-mtd
Cc: boris.brezillon, cyrille.pitchen, computersforpeace, han.xu,
festevam, prabhakar.kushwaha, suresh.gupta, Yogesh Gaur
LS2080a/LS1088a supports Freescale Quad SPI controller.
Add fsl-quadspi driver support for ls2080a and ls1088a chip.
Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
---
Depends on
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=26084
Changes for v2:
- Remove void * cast of_device_id structure for ls2080a_data.
- Generate patch from spi-nor/next branch.
drivers/mtd/spi-nor/fsl-quadspi.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 035dacd..b9c5918 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -214,6 +214,7 @@ enum fsl_qspi_devtype {
FSL_QUADSPI_IMX7D,
FSL_QUADSPI_IMX6UL,
FSL_QUADSPI_LS1021A,
+ FSL_QUADSPI_LS2080A,
};
struct fsl_qspi_devtype_data {
@@ -267,6 +268,15 @@ struct fsl_qspi_devtype_data {
.driver_data = 0,
};
+static const struct fsl_qspi_devtype_data ls2080a_data = {
+ .devtype = FSL_QUADSPI_LS2080A,
+ .rxfifo = 128,
+ .txfifo = 64,
+ .ahb_buf_size = 1024,
+ .driver_data = QUADSPI_QUIRK_TKT253890,
+};
+
+
#define FSL_QSPI_MAX_CHIP 4
struct fsl_qspi {
struct spi_nor nor[FSL_QSPI_MAX_CHIP];
@@ -821,6 +831,7 @@ static int fsl_qspi_nor_setup_last(struct fsl_qspi *q)
{ .compatible = "fsl,imx7d-qspi", .data = &imx7d_data, },
{ .compatible = "fsl,imx6ul-qspi", .data = &imx6ul_data, },
{ .compatible = "fsl,ls1021a-qspi", .data = (void *)&ls1021a_data, },
+ { .compatible = "fsl,ls2080a-qspi", .data = &ls2080a_data, },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, fsl_qspi_dt_ids);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mtd: fsl-quadspi: add support for ls2080a/ls1080a
2018-01-30 17:19 [PATCH v2] mtd: fsl-quadspi: add support for ls2080a/ls1080a Yogesh Gaur
@ 2018-05-18 20:04 ` Boris Brezillon
0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-05-18 20:04 UTC (permalink / raw)
To: Yogesh Gaur
Cc: linux-mtd, boris.brezillon, prabhakar.kushwaha, suresh.gupta,
cyrille.pitchen, han.xu, computersforpeace, festevam
On Tue, 30 Jan 2018 22:49:58 +0530
Yogesh Gaur <yogeshnarayan.gaur@nxp.com> wrote:
> LS2080a/LS1088a supports Freescale Quad SPI controller.
> Add fsl-quadspi driver support for ls2080a and ls1088a chip.
>
> Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
> Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Queued to spi-nor/next.
Thanks,
Boris
> ---
> Depends on
> https://patchwork.ozlabs.org/project/linux-mtd/list/?series=26084
>
> Changes for v2:
> - Remove void * cast of_device_id structure for ls2080a_data.
> - Generate patch from spi-nor/next branch.
>
> drivers/mtd/spi-nor/fsl-quadspi.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
> index 035dacd..b9c5918 100644
> --- a/drivers/mtd/spi-nor/fsl-quadspi.c
> +++ b/drivers/mtd/spi-nor/fsl-quadspi.c
> @@ -214,6 +214,7 @@ enum fsl_qspi_devtype {
> FSL_QUADSPI_IMX7D,
> FSL_QUADSPI_IMX6UL,
> FSL_QUADSPI_LS1021A,
> + FSL_QUADSPI_LS2080A,
> };
>
> struct fsl_qspi_devtype_data {
> @@ -267,6 +268,15 @@ struct fsl_qspi_devtype_data {
> .driver_data = 0,
> };
>
> +static const struct fsl_qspi_devtype_data ls2080a_data = {
> + .devtype = FSL_QUADSPI_LS2080A,
> + .rxfifo = 128,
> + .txfifo = 64,
> + .ahb_buf_size = 1024,
> + .driver_data = QUADSPI_QUIRK_TKT253890,
> +};
> +
> +
> #define FSL_QSPI_MAX_CHIP 4
> struct fsl_qspi {
> struct spi_nor nor[FSL_QSPI_MAX_CHIP];
> @@ -821,6 +831,7 @@ static int fsl_qspi_nor_setup_last(struct fsl_qspi *q)
> { .compatible = "fsl,imx7d-qspi", .data = &imx7d_data, },
> { .compatible = "fsl,imx6ul-qspi", .data = &imx6ul_data, },
> { .compatible = "fsl,ls1021a-qspi", .data = (void *)&ls1021a_data, },
> + { .compatible = "fsl,ls2080a-qspi", .data = &ls2080a_data, },
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, fsl_qspi_dt_ids);
--
Boris Brezillon, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-18 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 17:19 [PATCH v2] mtd: fsl-quadspi: add support for ls2080a/ls1080a Yogesh Gaur
2018-05-18 20:04 ` Boris Brezillon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox