use AMD standard command-set with winbond flash chips (#6966), patch from obinou
[librecmc/librecmc.git] / target / linux / generic-2.6 / patches-2.6.32 / 088-winbond_cmdset.patch
1 Index: linux-2.6.32.12/drivers/mtd/chips/gen_probe.c
2 ===================================================================
3 --- linux-2.6.32.12.orig/drivers/mtd/chips/gen_probe.c  2010-05-03 10:48:00.000000000 +0200
4 +++ linux-2.6.32.12/drivers/mtd/chips/gen_probe.c       2010-05-03 10:48:16.000000000 +0200
5 @@ -249,6 +249,7 @@
6  #endif
7  #ifdef CONFIG_MTD_CFI_AMDSTD
8         case 0x0002:
9 +       case 0x0006:
10                 return cfi_cmdset_0002(map, primary);
11  #endif
12  #ifdef CONFIG_MTD_CFI_STAA