X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Flayerscape%2Fpatches-5.15%2F400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch;fp=target%2Flinux%2Flayerscape%2Fpatches-5.15%2F400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch;h=7f1e8ae332f181950bbce0a75b2eff549ba1b7f1;hp=0000000000000000000000000000000000000000;hb=8efffce6779856874b1e33a4d50ddce5f9c2548f;hpb=f620fb4b7389e1d02791f51e38c6e57920ad39dc diff --git a/target/linux/layerscape/patches-5.15/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch b/target/linux/layerscape/patches-5.15/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch new file mode 100644 index 0000000000..7f1e8ae332 --- /dev/null +++ b/target/linux/layerscape/patches-5.15/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch @@ -0,0 +1,26 @@ +From 2b84e88d36de482da0370290ad4af09a71993f08 Mon Sep 17 00:00:00 2001 +From: Han Xu +Date: Tue, 14 Apr 2020 11:58:44 -0500 +Subject: [PATCH] LF-20-3 mtd: spi-nor: Use 1 bit mode of spansion(s25fs512s) + flash + +This is a workaround patch which uses only single bit mode of s25fs512s +flash + +Signed-off-by: Han Xu +Signed-off-by: Kuldeep Singh +--- + drivers/mtd/spi-nor/spansion.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/mtd/spi-nor/spansion.c ++++ b/drivers/mtd/spi-nor/spansion.c +@@ -227,7 +227,7 @@ static const struct flash_info spansion_ + SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + USE_CLSR) }, + { "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256, +- SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) ++ SPI_NOR_4B_OPCODES | USE_CLSR) + .fixups = &s25fs_s_fixups, }, + { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) }, + { "s25sl12801", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) },