generic: rtl8366: add common vlan_mc structure
[openwrt.git] / target / linux / ifxmips / patches-2.6.32 / 200-cfi-swap.patch
1 --- a/drivers/mtd/chips/cfi_cmdset_0001.c
2 +++ b/drivers/mtd/chips/cfi_cmdset_0001.c
3 @@ -41,7 +41,11 @@
4 /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */
5
6 // debugging, turns off buffer write mode if set to 1
7 -#define FORCE_WORD_WRITE 0
8 +#ifdef CONFIG_IFXMIPS
9 +# define FORCE_WORD_WRITE 1
10 +#else
11 +# define FORCE_WORD_WRITE 0
12 +#endif
13
14 #define MANUFACTURER_INTEL 0x0089
15 #define I82802AB 0x00ad
16 @@ -1480,6 +1484,9 @@ static int __xipram do_write_oneword(str
17 int ret=0;
18
19 adr += chip->start;
20 +#ifdef CONFIG_IFXMIPS
21 + adr ^= 2;
22 +#endif
23
24 switch (mode) {
25 case FL_WRITING:
26 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
27 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
28 @@ -1079,7 +1079,9 @@ static int __xipram do_write_oneword(str
29 int retry_cnt = 0;
30
31 adr += chip->start;
32 -
33 +#ifdef CONFIG_IFXMIPS
34 + adr ^= 2;
35 +#endif
36 spin_lock(chip->mutex);
37 ret = get_chip(map, chip, adr, FL_WRITING);
38 if (ret) {
This page took 0.051953 seconds and 5 git commands to generate.