blob: 02562b75873ddce1eca846423da466d274290cad [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 13f63bc4a1a08aaed6d64ea9c6b0bec02be225ce Mon Sep 17 00:00:00 2001
2From: Han Xu <han.xu@nxp.com>
3Date: Wed, 5 Jun 2019 16:43:08 -0500
4Subject: [PATCH] MLK-21960-1: spi: fspi: enable fspi on imx8qxp and imx8mm
5
6enable fspi on imx8qxp and imx8mm
7
8Signed-off-by: Han Xu <han.xu@nxp.com>
9---
10 drivers/spi/spi-nxp-fspi.c | 18 ++++++++++++++++++
11 1 file changed, 18 insertions(+)
12
13--- a/drivers/spi/spi-nxp-fspi.c
14+++ b/drivers/spi/spi-nxp-fspi.c
15@@ -324,6 +324,22 @@ static const struct nxp_fspi_devtype_dat
16 .little_endian = true, /* little-endian */
17 };
18
19+static const struct nxp_fspi_devtype_data imx8mm_data = {
20+ .rxfifo = SZ_512, /* (64 * 64 bits) */
21+ .txfifo = SZ_1K, /* (128 * 64 bits) */
22+ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */
23+ .quirks = 0,
24+ .little_endian = true, /* little-endian */
25+};
26+
27+static const struct nxp_fspi_devtype_data imx8qxp_data = {
28+ .rxfifo = SZ_512, /* (64 * 64 bits) */
29+ .txfifo = SZ_1K, /* (128 * 64 bits) */
30+ .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */
31+ .quirks = 0,
32+ .little_endian = true, /* little-endian */
33+};
34+
35 struct nxp_fspi {
36 void __iomem *iobase;
37 void __iomem *ahb_addr;
38@@ -1082,6 +1098,8 @@ static int nxp_fspi_resume(struct device
39
40 static const struct of_device_id nxp_fspi_dt_ids[] = {
41 { .compatible = "nxp,lx2160a-fspi", .data = (void *)&lx2160a_data, },
42+ { .compatible = "nxp,imx8mm-fspi", .data = (void *)&imx8mm_data, },
43+ { .compatible = "nxp,imx8qxp-fspi", .data = (void *)&imx8qxp_data, },
44 { /* sentinel */ }
45 };
46 MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids);