2020-04-10 02:47:05 +00:00
|
|
|
From 13f63bc4a1a08aaed6d64ea9c6b0bec02be225ce Mon Sep 17 00:00:00 2001
|
|
|
|
From: Han Xu <han.xu@nxp.com>
|
|
|
|
Date: Wed, 5 Jun 2019 16:43:08 -0500
|
|
|
|
Subject: [PATCH] MLK-21960-1: spi: fspi: enable fspi on imx8qxp and imx8mm
|
|
|
|
|
|
|
|
enable fspi on imx8qxp and imx8mm
|
|
|
|
|
|
|
|
Signed-off-by: Han Xu <han.xu@nxp.com>
|
|
|
|
---
|
|
|
|
drivers/spi/spi-nxp-fspi.c | 18 ++++++++++++++++++
|
|
|
|
1 file changed, 18 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/spi/spi-nxp-fspi.c
|
|
|
|
+++ b/drivers/spi/spi-nxp-fspi.c
|
|
|
|
@@ -324,6 +324,22 @@ static const struct nxp_fspi_devtype_dat
|
|
|
|
.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 */
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static const struct nxp_fspi_devtype_data imx8qxp_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 {
|
|
|
|
void __iomem *iobase;
|
|
|
|
void __iomem *ahb_addr;
|
2021-06-30 20:57:44 +00:00
|
|
|
@@ -1082,6 +1098,8 @@ static int nxp_fspi_resume(struct device
|
2020-04-10 02:47:05 +00:00
|
|
|
|
|
|
|
static const struct of_device_id nxp_fspi_dt_ids[] = {
|
|
|
|
{ .compatible = "nxp,lx2160a-fspi", .data = (void *)&lx2160a_data, },
|
|
|
|
+ { .compatible = "nxp,imx8mm-fspi", .data = (void *)&imx8mm_data, },
|
|
|
|
+ { .compatible = "nxp,imx8qxp-fspi", .data = (void *)&imx8qxp_data, },
|
|
|
|
{ /* sentinel */ }
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids);
|