From 8d83a22159b79f3038d318fd906c7cd6371bd685 Mon Sep 17 00:00:00 2001 From: cbuschfb Date: Tue, 29 Sep 2020 13:44:23 +0000 Subject: [PATCH] Patch W25M02GV NAND support EdgeCore ECW5211 Signed-off-by: cbuschfb --- ...gecore-ECW5211-nand-w25m02gv-support.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 patches/0032-ipq40xx-Edgecore-ECW5211-nand-w25m02gv-support.patch diff --git a/patches/0032-ipq40xx-Edgecore-ECW5211-nand-w25m02gv-support.patch b/patches/0032-ipq40xx-Edgecore-ECW5211-nand-w25m02gv-support.patch new file mode 100755 index 000000000..24938c9b5 --- /dev/null +++ b/patches/0032-ipq40xx-Edgecore-ECW5211-nand-w25m02gv-support.patch @@ -0,0 +1,29 @@ +Subject: [PATCH] ipq40xx: new NAND flash W25M02GV support for Edgecore ECW5211 + +This patch adds W25M02GV NAND flash support for Edgecore ECW5211 + +Signed-off-by: Samul Hwang +--- + .../patches-4.14/999-mtd-gd25q256.patch | 13 + + 1 file changed, 13 insertions(+) + create mode 100755 target/linux/ipq40xx/patches-4.14/999-nand-w25m02gv.patch + +diff --git a/target/linux/ipq40xx/patches-4.14/999-nand-w25m02gv.patch b/target/linux/ipq40xx/patches-4.14/999-nand-w25m02gv.patch +new file mode 100755 +index 0000000000..ff57048e6b +--- /dev/null ++++ b/target/linux/ipq40xx/patches-4.14/999-nand-w25m02gv.patch +@@ -0,0 +1,13 @@ ++--- a/drivers/mtd/nand/nand_ids.c 2020-08-13 19:35:37.056939647 +0800 +++++ b/drivers/mtd/nand/nand_ids.c 2020-08-11 17:19:36.900224383 +0800 ++@@ -62,6 +62,10 @@ struct nand_flash_dev nand_flash_ids[] = ++ { .id = {0xef, 0xaa} }, ++ SZ_2K, SZ_128, SZ_128K, NAND_NO_SUBPAGE_WRITE, ++ 2, 64, NAND_ECC_INFO(1, SZ_512) }, +++ {"W25M02GV 256MiB 3.3V(Dual die)", +++ { .id = {0xef, 0xab} }, +++ SZ_2K, SZ_256, SZ_128K, NAND_NO_SUBPAGE_WRITE, +++ 2, 64, NAND_ECC_INFO(1, SZ_512) }, ++ ++ LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), ++ LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS),