| 1 | From 6bbab54ef3cbfc340a3d3ffdcb0aa47bb4c29de9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lars-Peter Clausen <lars@metafoo.de> |
| 3 | Date: Thu, 11 Nov 2010 19:05:40 +0100 |
| 4 | Subject: [PATCH 22/23] MIPS: JZ4740: Set nand ecc offsets for the qi_lb60 board |
| 5 | |
| 6 | Now that the mtd core supports more then 64 ecc bytes we can use it instead of |
| 7 | some a custom hack in the jz4740 nand driver. |
| 8 | This patches sets the ecc pos fields of the ecc_layout of the qi_lb60 board. |
| 9 | |
| 10 | Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> |
| 11 | --- |
| 12 | arch/mips/jz4740/board-qi_lb60.c | 8 ++++---- |
| 13 | 1 files changed, 4 insertions(+), 4 deletions(-) |
| 14 | |
| 15 | --- a/arch/mips/jz4740/board-qi_lb60.c |
| 16 | +++ b/arch/mips/jz4740/board-qi_lb60.c |
| 17 | @@ -50,14 +50,14 @@ static bool is_avt2; |
| 18 | |
| 19 | /* NAND */ |
| 20 | static struct nand_ecclayout qi_lb60_ecclayout_1gb = { |
| 21 | -/* .eccbytes = 36, |
| 22 | + .eccbytes = 36, |
| 23 | .eccpos = { |
| 24 | 6, 7, 8, 9, 10, 11, 12, 13, |
| 25 | 14, 15, 16, 17, 18, 19, 20, 21, |
| 26 | 22, 23, 24, 25, 26, 27, 28, 29, |
| 27 | 30, 31, 32, 33, 34, 35, 36, 37, |
| 28 | 38, 39, 40, 41 |
| 29 | - },*/ |
| 30 | + }, |
| 31 | .oobfree = { |
| 32 | { .offset = 2, .length = 4 }, |
| 33 | { .offset = 42, .length = 22 } |
| 34 | @@ -86,7 +86,7 @@ static struct mtd_partition qi_lb60_part |
| 35 | }; |
| 36 | |
| 37 | static struct nand_ecclayout qi_lb60_ecclayout_2gb = { |
| 38 | -/* .eccbytes = 72, |
| 39 | + .eccbytes = 72, |
| 40 | .eccpos = { |
| 41 | 12, 13, 14, 15, 16, 17, 18, 19, |
| 42 | 20, 21, 22, 23, 24, 25, 26, 27, |
| 43 | @@ -97,7 +97,7 @@ static struct nand_ecclayout qi_lb60_ecc |
| 44 | 60, 61, 62, 63, 64, 65, 66, 67, |
| 45 | 68, 69, 70, 71, 72, 73, 74, 75, |
| 46 | 76, 77, 78, 79, 80, 81, 82, 83 |
| 47 | - },*/ |
| 48 | + }, |
| 49 | .oobfree = { |
| 50 | { .offset = 2, .length = 10 }, |
| 51 | { .offset = 84, .length = 44 }, |
| 52 | |