Date:2010-06-28 00:09:10 (13 years 5 months ago)
Author:Lars C.
Commit:4826e1479acf1173ff42e475f87bb831ab94e53c
Message:MIPS: JZ4740: Drop eccpos array from ecclayout.

This is now handled by the nand driver.
Files: arch/mips/jz4740/board-n516.c (1 diff)
arch/mips/jz4740/board-n526.c (1 diff)
arch/mips/jz4740/board-qi_lb60.c (2 diffs)

Change Details

arch/mips/jz4740/board-n516.c
123123};
124124
125125static struct nand_ecclayout n516_ecclayout = {
126    .eccbytes = 36,
127    .eccpos = {
128         6, 7, 8, 9, 10, 11, 12, 13, 14,
129        15, 16, 17, 18, 19, 20, 21, 22, 23,
130        24, 25, 26, 27, 28, 29, 30, 31, 32,
131        33, 34, 35, 36, 37, 38, 39, 40, 41,
132    },
133126    .oobfree = {
134127        {
135128            .offset = 2,
arch/mips/jz4740/board-n526.c
3838
3939/* NAND */
4040static struct nand_ecclayout n526_ecclayout = {
41    .eccbytes = 36,
42    .eccpos = {
43        6, 7, 8, 9, 10, 11, 12, 13,
44        14, 15, 16, 17, 18, 19, 20, 21,
45        22, 23, 24, 25, 26, 27, 28, 29,
46        30, 31, 32, 33, 34, 35, 36, 37,
47        38, 39, 40, 41},
4841    .oobfree = {
4942        {.offset = 2,
5043         .length = 4},
arch/mips/jz4740/board-qi_lb60.c
4242
4343/* NAND */
4444static struct nand_ecclayout qi_lb60_ecclayout_1gb = {
45    .eccbytes = 36,
46    .eccpos = {
47        6, 7, 8, 9, 10, 11, 12, 13,
48        14, 15, 16, 17, 18, 19, 20, 21,
49        22, 23, 24, 25, 26, 27, 28, 29,
50        30, 31, 32, 33, 34, 35, 36, 37,
51        38, 39, 40, 41
52    },
5345    .oobfree = {
5446        {.offset = 2,
5547         .length = 4},
...... 
7668};
7769
7870static struct nand_ecclayout qi_lb60_ecclayout_2gb = {
79    .eccbytes = 72,
80    .eccpos = {
81        12, 13, 14, 15, 16, 17, 18, 19,
82        20, 21, 22, 23, 24, 25, 26, 27,
83        28, 29, 30, 31, 32, 33, 34, 35,
84        36, 37, 38, 39, 40, 41, 42, 43,
85        44, 45, 46, 47, 48, 49, 50, 51,
86        52, 53, 54, 55, 56, 57, 58, 59,
87        60, 61, 62, 63, 64, 65, 66, 67,
88        68, 69, 70, 71, 72, 73, 74, 75,
89        76, 77, 78, 79, 80, 81, 82, 83
90    },
9171    .oobfree = {
9272        { .offset = 2, .length = 10 },
9373        { .offset = 84, .length = 44 },

Archive Download the corresponding diff file



interactive