aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/amazon/patches-2.6.30/160-cfi-swap.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-22 07:20:53 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-22 07:20:53 +0000
commit631bf8224163ee536eb9e3aa347d810bd59c76fe (patch)
tree3e2eddde5f2a885c877cc1ff405d94286d6c7535 /target/linux/amazon/patches-2.6.30/160-cfi-swap.patch
parentf37deb2b1b95489ac2738bca2b00c546bf76db12 (diff)
downloadupstream-631bf8224163ee536eb9e3aa347d810bd59c76fe.tar.gz
upstream-631bf8224163ee536eb9e3aa347d810bd59c76fe.tar.bz2
upstream-631bf8224163ee536eb9e3aa347d810bd59c76fe.zip
amazon: remove 2.6.3{0,2} support
SVN-Revision: 31433
Diffstat (limited to 'target/linux/amazon/patches-2.6.30/160-cfi-swap.patch')
-rw-r--r--target/linux/amazon/patches-2.6.30/160-cfi-swap.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/amazon/patches-2.6.30/160-cfi-swap.patch b/target/linux/amazon/patches-2.6.30/160-cfi-swap.patch
deleted file mode 100644
index 4809fccd8d..0000000000
--- a/target/linux/amazon/patches-2.6.30/160-cfi-swap.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- a/drivers/mtd/chips/cfi_cmdset_0002.c
-+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
-@@ -1090,6 +1090,9 @@ static int __xipram do_write_oneword(str
- int retry_cnt = 0;
-
- adr += chip->start;
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-
- spin_lock(chip->mutex);
- ret = get_chip(map, chip, adr, FL_WRITING);
-@@ -1372,7 +1375,11 @@ static int __xipram do_write_buffer(stru
- z = 0;
- while(z < words * map_bankwidth(map)) {
- datum = map_word_load(map, buf);
-+#ifdef CONFIG_AMAZON
-+ map_write(map, datum, (adr + z) ^ 0x2);
-+#else
- map_write(map, datum, adr + z);
-+#endif
-
- z += map_bankwidth(map);
- buf += map_bankwidth(map);
-@@ -1617,6 +1624,9 @@ static int __xipram do_erase_oneblock(st
- int ret = 0;
-
- adr += chip->start;
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-
- spin_lock(chip->mutex);
- ret = get_chip(map, chip, adr, FL_ERASING);
-@@ -1745,6 +1755,10 @@ static int do_atmel_lock(struct map_info
- struct cfi_private *cfi = map->fldrv_priv;
- int ret;
-
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-+
- spin_lock(chip->mutex);
- ret = get_chip(map, chip, adr + chip->start, FL_LOCKING);
- if (ret)
-@@ -1781,6 +1795,10 @@ static int do_atmel_unlock(struct map_in
- struct cfi_private *cfi = map->fldrv_priv;
- int ret;
-
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-+
- spin_lock(chip->mutex);
- ret = get_chip(map, chip, adr + chip->start, FL_UNLOCKING);
- if (ret)