1 From 13f63bc4a1a08aaed6d64ea9c6b0bec02be225ce Mon Sep 17 00:00:00 2001
2 From: Han Xu <han.xu@nxp.com>
3 Date: Wed, 5 Jun 2019 16:43:08 -0500
4 Subject: [PATCH] MLK-21960-1: spi: fspi: enable fspi on imx8qxp and imx8mm
6 enable fspi on imx8qxp and imx8mm
8 Signed-off-by: Han Xu <han.xu@nxp.com>
10 drivers/spi/spi-nxp-fspi.c | 18 ++++++++++++++++++
11 1 file changed, 18 insertions(+)
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 */
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) */
24 + .little_endian = true, /* little-endian */
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) */
32 + .little_endian = true, /* little-endian */
37 void __iomem *ahb_addr;
38 @@ -1083,6 +1099,8 @@ static int nxp_fspi_resume(struct device
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, },
46 MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids);