Change Details
target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch |
1139 | 1139 | index 0000000..7b1cdf3 |
1140 | 1140 | --- /dev/null |
1141 | 1141 | +++ b/cpu/mips/jz4740_nand.c |
1142 | | @@ -0,0 +1,198 @@ |
| 1142 | @@ -0,0 +1,199 @@ |
1143 | 1143 | +/* |
1144 | 1144 | + * Platform independend driver for JZ4740. |
1145 | 1145 | + * |
... | ... | |
1331 | 1331 | + nand->ecc.calculate = jzsoc_nand_calculate_rs_ecc; |
1332 | 1332 | + nand->ecc.mode = NAND_ECC_HW; |
1333 | 1333 | + nand->ecc.size = 512; |
| 1334 | + nand->ecc.bytes = 9; |
1334 | 1335 | + |
1335 | 1336 | + /* 20 us command delay time */ |
1336 | 1337 | + nand->chip_delay = 20; |
target/linux/xburst/image/u-boot/patches/0002-add-xburst-support.patch |
1281 | 1281 | + chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); |
1282 | 1282 | + |
1283 | 1283 | + for (i = 0; i < chip->ecc.total; i++) { |
1284 | | + ecc_code[i] = chip->oob_poi[eccpos[i]]; |
| 1284 | + ecc_code[i] = chip->oob_poi[CONFIG_NAND_ECC_POS + i]; |
1285 | 1285 | + if (ecc_code[i] != 0xff) |
1286 | 1286 | + flag = 1; |
1287 | 1287 | + } |
Download the corresponding diff file