Date:2010-11-11 19:05:40 (13 years 4 months ago)
Author:Lars C.
Commit:1bba17ac1b99aa1220295053a1d3388c4bf0270b
Message: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>
Files: arch/mips/jz4740/board-qi_lb60.c (3 diffs)

Change Details

arch/mips/jz4740/board-qi_lb60.c
5050
5151/* NAND */
5252static struct nand_ecclayout qi_lb60_ecclayout_1gb = {
53/* .eccbytes = 36,
53    .eccbytes = 36,
5454    .eccpos = {
5555        6, 7, 8, 9, 10, 11, 12, 13,
5656        14, 15, 16, 17, 18, 19, 20, 21,
5757        22, 23, 24, 25, 26, 27, 28, 29,
5858        30, 31, 32, 33, 34, 35, 36, 37,
5959        38, 39, 40, 41
60    },*/
60    },
6161    .oobfree = {
6262        { .offset = 2, .length = 4 },
6363        { .offset = 42, .length = 22 }
...... 
8686};
8787
8888static struct nand_ecclayout qi_lb60_ecclayout_2gb = {
89/* .eccbytes = 72,
89    .eccbytes = 72,
9090    .eccpos = {
9191        12, 13, 14, 15, 16, 17, 18, 19,
9292        20, 21, 22, 23, 24, 25, 26, 27,
...... 
9797        60, 61, 62, 63, 64, 65, 66, 67,
9898        68, 69, 70, 71, 72, 73, 74, 75,
9999        76, 77, 78, 79, 80, 81, 82, 83
100    },*/
100    },
101101    .oobfree = {
102102        { .offset = 2, .length = 10 },
103103        { .offset = 84, .length = 44 },

Archive Download the corresponding diff file



interactive