7f1e8ae332f181950bbce0a75b2eff549ba1b7f1
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.15 / 400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch
1 From 2b84e88d36de482da0370290ad4af09a71993f08 Mon Sep 17 00:00:00 2001
2 From: Han Xu <han.xu@nxp.com>
3 Date: Tue, 14 Apr 2020 11:58:44 -0500
4 Subject: [PATCH] LF-20-3 mtd: spi-nor: Use 1 bit mode of spansion(s25fs512s)
5 flash
6
7 This is a workaround patch which uses only single bit mode of s25fs512s
8 flash
9
10 Signed-off-by: Han Xu <han.xu@nxp.com>
11 Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
12 ---
13 drivers/mtd/spi-nor/spansion.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/mtd/spi-nor/spansion.c
17 +++ b/drivers/mtd/spi-nor/spansion.c
18 @@ -227,7 +227,7 @@ static const struct flash_info spansion_
19 SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
20 USE_CLSR) },
21 { "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256,
22 - SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR)
23 + SPI_NOR_4B_OPCODES | USE_CLSR)
24 .fixups = &s25fs_s_fixups, },
25 { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) },
26 { "s25sl12801", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) },