1 --- a/drivers/mtd/chips/cfi_cmdset_0001.c
2 +++ b/drivers/mtd/chips/cfi_cmdset_0001.c
4 /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
6 // debugging, turns off buffer write mode if set to 1
7 -#define FORCE_WORD_WRITE 0
9 +# define FORCE_WORD_WRITE 1
11 +# define FORCE_WORD_WRITE 0
15 #define I82802AB 0x00ad
16 @@ -1494,6 +1498,9 @@ static int __xipram do_write_oneword(str
20 +#ifdef CONFIG_IFXMIPS
26 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
27 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
29 #include <linux/mtd/xip.h>
31 #define AMD_BOOTLOC_BUG
32 -#define FORCE_WORD_WRITE 0
33 +#ifdef CONFIG_IFXMIPS
34 +# define FORCE_WORD_WRITE 1
36 +# define FORCE_WORD_WRITE 0
39 #define MAX_WORD_RETRIES 3
41 @@ -1096,7 +1096,9 @@ static int __xipram do_write_oneword(str
46 +#ifdef CONFIG_IFXMIPS
49 spin_lock(chip->mutex);
50 ret = get_chip(map, chip, adr, FL_WRITING);