summaryrefslogtreecommitdiff
path: root/target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-01-06 01:32:17 +0000
committerLars-Peter Clausen <lars@metafoo.de>2011-01-06 01:32:17 +0000
commit4f7abc1c7a9e564f2730041899f88567f63aada3 (patch)
tree6323c3dc79da446fa622542a1c120d2f9441d46f /target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch
parent9abe5cf11047a9590417f6baf2226e86a3a12f54 (diff)
downloadmtk-20170518-4f7abc1c7a9e564f2730041899f88567f63aada3.zip
mtk-20170518-4f7abc1c7a9e564f2730041899f88567f63aada3.tar.gz
mtk-20170518-4f7abc1c7a9e564f2730041899f88567f63aada3.tar.bz2
Add 2.6.37 support
SVN-Revision: 24914
Diffstat (limited to 'target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch')
-rw-r--r--target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch b/target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch
new file mode 100644
index 0000000..1d4beba
--- /dev/null
+++ b/target/linux/xburst/patches-2.6.37/303-qi_lb60-set-nand-ecc-offsets.patch
@@ -0,0 +1,51 @@
+From 6bbab54ef3cbfc340a3d3ffdcb0aa47bb4c29de9 Mon Sep 17 00:00:00 2001
+From: Lars-Peter Clausen <lars@metafoo.de>
+Date: Thu, 11 Nov 2010 19:05:40 +0100
+Subject: [PATCH 22/23] MIPS: JZ4740: Set nand ecc offsets for the qi_lb60 board
+
+Now that the mtd core supports more then 64 ecc bytes we can use it instead of
+some a custom hack in the jz4740 nand driver.
+This patches sets the ecc pos fields of the ecc_layout of the qi_lb60 board.
+
+Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
+---
+ arch/mips/jz4740/board-qi_lb60.c | 8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/arch/mips/jz4740/board-qi_lb60.c
++++ b/arch/mips/jz4740/board-qi_lb60.c
+@@ -50,14 +50,14 @@ static bool is_avt2;
+
+ /* NAND */
+ static struct nand_ecclayout qi_lb60_ecclayout_1gb = {
+-/* .eccbytes = 36,
++ .eccbytes = 36,
+ .eccpos = {
+ 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, 39, 40, 41
+- },*/
++ },
+ .oobfree = {
+ { .offset = 2, .length = 4 },
+ { .offset = 42, .length = 22 }
+@@ -86,7 +86,7 @@ static struct mtd_partition qi_lb60_part
+ };
+
+ static struct nand_ecclayout qi_lb60_ecclayout_2gb = {
+-/* .eccbytes = 72,
++ .eccbytes = 72,
+ .eccpos = {
+ 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27,
+@@ -97,7 +97,7 @@ static struct nand_ecclayout qi_lb60_ecc
+ 60, 61, 62, 63, 64, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75,
+ 76, 77, 78, 79, 80, 81, 82, 83
+- },*/
++ },
+ .oobfree = {
+ { .offset = 2, .length = 10 },
+ { .offset = 84, .length = 44 },