add support for winbond flash chips, fixes ticket #115
authorImre Kaloz <kaloz@openwrt.org>
Wed, 7 Dec 2005 10:21:33 +0000 (10:21 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Wed, 7 Dec 2005 10:21:33 +0000 (10:21 +0000)
SVN-Revision: 2593

openwrt/target/linux/linux-2.4/patches/generic/006-winbond_flashchip_fix.patch [new file with mode: 0644]

diff --git a/openwrt/target/linux/linux-2.4/patches/generic/006-winbond_flashchip_fix.patch b/openwrt/target/linux/linux-2.4/patches/generic/006-winbond_flashchip_fix.patch
new file mode 100644 (file)
index 0000000..b59d106
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ur linux-2.4.30/drivers/mtd/chips/gen_probe.c linux-2.4.30.openwrt/drivers/mtd/chips/gen_probe.c
+--- linux-2.4.30/drivers/mtd/chips/gen_probe.c 2003-08-25 13:44:42.000000000 +0200
++++ linux-2.4.30.openwrt/drivers/mtd/chips/gen_probe.c 2005-12-07 10:53:43.000000000 +0100
+@@ -329,6 +329,7 @@
+ #endif
+ #ifdef CONFIG_MTD_CFI_AMDSTD
+       case 0x0002:
++      case 0x0006:
+               return cfi_cmdset_0002(map, primary);
+ #endif
+ #ifdef CONFIG_MTD_CFI_STAA