1 Index: linux-2.6.35.8/drivers/mtd/chips/cfi_cmdset_0001.c
2 ===================================================================
3 --- linux-2.6.35.8.orig/drivers/mtd/chips/cfi_cmdset_0001.c 2010-10-29 06:52:43.000000000 +0200
4 +++ linux-2.6.35.8/drivers/mtd/chips/cfi_cmdset_0001.c 2010-11-01 13:01:30.000000000 +0100
6 /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
8 // debugging, turns off buffer write mode if set to 1
9 -#define FORCE_WORD_WRITE 0
10 +#ifdef CONFIG_IFXMIPS
11 +# define FORCE_WORD_WRITE 1
13 +# define FORCE_WORD_WRITE 0
17 #define I82802AB 0x00ad
22 +#ifdef CONFIG_IFXMIPS
28 Index: linux-2.6.35.8/drivers/mtd/chips/cfi_cmdset_0002.c
29 ===================================================================
30 --- linux-2.6.35.8.orig/drivers/mtd/chips/cfi_cmdset_0002.c 2010-11-01 13:01:29.000000000 +0100
31 +++ linux-2.6.35.8/drivers/mtd/chips/cfi_cmdset_0002.c 2010-11-01 15:14:17.000000000 +0100
33 #include <linux/mtd/xip.h>
35 #define AMD_BOOTLOC_BUG
36 -#define FORCE_WORD_WRITE 0
37 +#ifdef CONFIG_IFXMIPS
38 +# define FORCE_WORD_WRITE 1
40 +# define FORCE_WORD_WRITE 0
43 #define MAX_WORD_RETRIES 3
45 @@ -1156,6 +1160,10 @@
49 +#ifdef CONFIG_IFXMIPS
53 mutex_lock(&chip->mutex);
54 ret = get_chip(map, chip, adr, FL_WRITING);