aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/amazon/patches-2.6.37/160-cfi-swap.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-05-13 15:10:40 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-05-13 15:10:40 +0000
commitabd74f86b459f4ac684de4a0f1bf6552d14b105a (patch)
tree5e6a8d954a21071671d2dc346bc97c6bb0d8ec3c /target/linux/amazon/patches-2.6.37/160-cfi-swap.patch
parent2803206c500fd09cbcb926e9cba7b19b5ae0d9f2 (diff)
downloadupstream-abd74f86b459f4ac684de4a0f1bf6552d14b105a.tar.gz
upstream-abd74f86b459f4ac684de4a0f1bf6552d14b105a.tar.bz2
upstream-abd74f86b459f4ac684de4a0f1bf6552d14b105a.zip
amazon: update amazon target to kernel 3.3
This is just compile tested, my device is currently not working. SVN-Revision: 31706
Diffstat (limited to 'target/linux/amazon/patches-2.6.37/160-cfi-swap.patch')
-rw-r--r--target/linux/amazon/patches-2.6.37/160-cfi-swap.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/amazon/patches-2.6.37/160-cfi-swap.patch b/target/linux/amazon/patches-2.6.37/160-cfi-swap.patch
deleted file mode 100644
index 65ce6616d3..0000000000
--- a/target/linux/amazon/patches-2.6.37/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
-@@ -1166,6 +1166,9 @@ static int __xipram do_write_oneword(str
- int retry_cnt = 0;
-
- adr += chip->start;
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-
- mutex_lock(&chip->mutex);
- ret = get_chip(map, chip, adr, FL_WRITING);
-@@ -1433,7 +1436,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);
-@@ -1678,6 +1685,9 @@ static int __xipram do_erase_oneblock(st
- int ret = 0;
-
- adr += chip->start;
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-
- mutex_lock(&chip->mutex);
- ret = get_chip(map, chip, adr, FL_ERASING);
-@@ -1806,6 +1816,10 @@ static int do_atmel_lock(struct map_info
- struct cfi_private *cfi = map->fldrv_priv;
- int ret;
-
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-+
- mutex_lock(&chip->mutex);
- ret = get_chip(map, chip, adr + chip->start, FL_LOCKING);
- if (ret)
-@@ -1842,6 +1856,10 @@ static int do_atmel_unlock(struct map_in
- struct cfi_private *cfi = map->fldrv_priv;
- int ret;
-
-+#ifdef CONFIG_AMAZON
-+ adr ^= 2;
-+#endif
-+
- mutex_lock(&chip->mutex);
- ret = get_chip(map, chip, adr + chip->start, FL_UNLOCKING);
- if (ret)