ath79/mikrotik: use routerbootpart partitions
[oweals/openwrt.git] / target / linux / layerscape / patches-5.4 / 817-spi-0003-MLK-21960-1-spi-fspi-enable-fspi-on-imx8qxp-and-imx8.patch
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
5
6 enable fspi on imx8qxp and imx8mm
7
8 Signed-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 @@ -1076,6 +1092,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);