summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-09-03 20:25:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-09-03 20:25:51 +0000
commit94a45be66b607414e59cdb94ca5d4fb49a31cfcb (patch)
tree9fc1b4e71382d866366de2eaac91af9ab6508d43 /target
parent19cbe80501688d31fb90c41c06e274e27fb449d1 (diff)
downloadmtk-20170518-94a45be66b607414e59cdb94ca5d4fb49a31cfcb.zip
mtk-20170518-94a45be66b607414e59cdb94ca5d4fb49a31cfcb.tar.gz
mtk-20170518-94a45be66b607414e59cdb94ca5d4fb49a31cfcb.tar.bz2
enable CFI command set 0002 FORCE_WORD_WRITE
SVN-Revision: 33315
Diffstat (limited to 'target')
-rw-r--r--target/linux/mcs814x/patches-3.3/012-mtd-cfi_cmdset_0002-force-word-write.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/mcs814x/patches-3.3/012-mtd-cfi_cmdset_0002-force-word-write.patch b/target/linux/mcs814x/patches-3.3/012-mtd-cfi_cmdset_0002-force-word-write.patch
new file mode 100644
index 0000000..89738a3
--- /dev/null
+++ b/target/linux/mcs814x/patches-3.3/012-mtd-cfi_cmdset_0002-force-word-write.patch
@@ -0,0 +1,14 @@
+--- a/drivers/mtd/chips/cfi_cmdset_0002.c
++++ b/drivers/mtd/chips/cfi_cmdset_0002.c
+@@ -39,9 +39,9 @@
+ #include <linux/mtd/xip.h>
+
+ #define AMD_BOOTLOC_BUG
+-#define FORCE_WORD_WRITE 0
++#define FORCE_WORD_WRITE 1
+
+-#define MAX_WORD_RETRIES 3
++#define MAX_WORD_RETRIES 10
+
+ #define SST49LF004B 0x0060
+ #define SST49LF040B 0x0050