Patch W25M02GV NAND support EdgeCore ECW5211

Signed-off-by: cbuschfb <chrisbusch@fb.com>
This commit is contained in:
cbuschfb 2020-09-29 13:44:23 +00:00
parent d0cecdecef
commit 8d83a22159

View File

@ -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 <samul_hwang@accton.com>
---
.../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),