aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-02-07 21:43:54 -0500
committerRalf Baechle <ralf@linux-mips.org>2011-03-25 13:45:21 -0400
commitc8fb4022cf61a0462ad01525e0b3dd00410e9eac (patch)
tree8e3e8c4f04c6a08457a0e5a78861a9b9a6649cbc /arch/mips
parent0b4cf1813f54d708b18c639260fc13dc3d922e96 (diff)
MIPS: JZ4740: Set nand ecc offsets for the qi_lb60 board
The jz4740 nand driver now requires that the ecc offsets are set. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/2058/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/jz4740/board-qi_lb60.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
index ed8d66b4b03f..bc18daaa8f84 100644
--- a/arch/mips/jz4740/board-qi_lb60.c
+++ b/arch/mips/jz4740/board-qi_lb60.c
@@ -50,14 +50,14 @@ static bool is_avt2;
50 50
51/* NAND */ 51/* NAND */
52static struct nand_ecclayout qi_lb60_ecclayout_1gb = { 52static struct nand_ecclayout qi_lb60_ecclayout_1gb = {
53/* .eccbytes = 36, 53 .eccbytes = 36,
54 .eccpos = { 54 .eccpos = {
55 6, 7, 8, 9, 10, 11, 12, 13, 55 6, 7, 8, 9, 10, 11, 12, 13,
56 14, 15, 16, 17, 18, 19, 20, 21, 56 14, 15, 16, 17, 18, 19, 20, 21,
57 22, 23, 24, 25, 26, 27, 28, 29, 57 22, 23, 24, 25, 26, 27, 28, 29,
58 30, 31, 32, 33, 34, 35, 36, 37, 58 30, 31, 32, 33, 34, 35, 36, 37,
59 38, 39, 40, 41 59 38, 39, 40, 41
60 },*/ 60 },
61 .oobfree = { 61 .oobfree = {
62 { .offset = 2, .length = 4 }, 62 { .offset = 2, .length = 4 },
63 { .offset = 42, .length = 22 } 63 { .offset = 42, .length = 22 }
@@ -86,7 +86,7 @@ static struct mtd_partition qi_lb60_partitions_1gb[] = {
86}; 86};
87 87
88static struct nand_ecclayout qi_lb60_ecclayout_2gb = { 88static struct nand_ecclayout qi_lb60_ecclayout_2gb = {
89/* .eccbytes = 72, 89 .eccbytes = 72,
90 .eccpos = { 90 .eccpos = {
91 12, 13, 14, 15, 16, 17, 18, 19, 91 12, 13, 14, 15, 16, 17, 18, 19,
92 20, 21, 22, 23, 24, 25, 26, 27, 92 20, 21, 22, 23, 24, 25, 26, 27,
@@ -97,7 +97,7 @@ static struct nand_ecclayout qi_lb60_ecclayout_2gb = {
97 60, 61, 62, 63, 64, 65, 66, 67, 97 60, 61, 62, 63, 64, 65, 66, 67,
98 68, 69, 70, 71, 72, 73, 74, 75, 98 68, 69, 70, 71, 72, 73, 74, 75,
99 76, 77, 78, 79, 80, 81, 82, 83 99 76, 77, 78, 79, 80, 81, 82, 83
100 },*/ 100 },
101 .oobfree = { 101 .oobfree = {
102 { .offset = 2, .length = 10 }, 102 { .offset = 2, .length = 10 },
103 { .offset = 84, .length = 44 }, 103 { .offset = 84, .length = 44 },