diff options
author | John Crispin <blogic@openwrt.org> | 2014-12-05 00:19:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-05 00:19:40 +0000 |
commit | f5ea60f000d1a53780c57b0a641201f317c63ced (patch) | |
tree | cfed792b13b23a8a2371990dcec6f534fea290ec /target/linux/amazon/patches-3.3/160-cfi-swap.patch | |
parent | 491ce2c749fb73801794f9162227b37075bb250e (diff) | |
download | master-187ad058-f5ea60f000d1a53780c57b0a641201f317c63ced.tar.gz master-187ad058-f5ea60f000d1a53780c57b0a641201f317c63ced.tar.bz2 master-187ad058-f5ea60f000d1a53780c57b0a641201f317c63ced.zip |
amazon: R.I.P.
its been broken for 2 1/2 years
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43516 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon/patches-3.3/160-cfi-swap.patch')
-rw-r--r-- | target/linux/amazon/patches-3.3/160-cfi-swap.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/amazon/patches-3.3/160-cfi-swap.patch b/target/linux/amazon/patches-3.3/160-cfi-swap.patch deleted file mode 100644 index 4a0009e432..0000000000 --- a/target/linux/amazon/patches-3.3/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 -@@ -1152,6 +1152,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); -@@ -1420,7 +1423,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); -@@ -1665,6 +1672,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); -@@ -1793,6 +1803,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) -@@ -1828,6 +1842,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) |