kernel-5.4: bump to 5.4.102 and refresh patches
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 817-spi-0005-spi-spi-nxp-fspi-Enable-the-Octal-Mode-in-MCR0.patch
1 From cfa4dd5aafd797de69eb7c450d1236ba456dc543 Mon Sep 17 00:00:00 2001
2 From: Han Xu <han.xu@nxp.com>
3 Date: Wed, 30 Oct 2019 10:46:15 -0500
4 Subject: [PATCH] spi: spi-nxp-fspi: Enable the Octal Mode in MCR0
5
6 Enable the octal combination mode in MCR0
7
8 Signed-off-by: Han Xu <han.xu@nxp.com>
9 ---
10 drivers/spi/spi-nxp-fspi.c | 5 +++--
11 1 file changed, 3 insertions(+), 2 deletions(-)
12
13 --- a/drivers/spi/spi-nxp-fspi.c
14 +++ b/drivers/spi/spi-nxp-fspi.c
15 @@ -913,8 +913,9 @@ static int nxp_fspi_default_setup(struct
16 fspi_writel(f, FSPI_DLLBCR_OVRDEN, base + FSPI_DLLBCR);
17
18 /* enable module */
19 - fspi_writel(f, FSPI_MCR0_AHB_TIMEOUT(0xFF) | FSPI_MCR0_IP_TIMEOUT(0xFF),
20 - base + FSPI_MCR0);
21 + fspi_writel(f, FSPI_MCR0_AHB_TIMEOUT(0xFF) |
22 + FSPI_MCR0_IP_TIMEOUT(0xFF) | (u32) FSPI_MCR0_OCTCOMB_EN,
23 + base + FSPI_MCR0);
24
25 /*
26 * Disable same device enable bit and configure all slave devices