Date:2009-12-21 16:37:13 (14 years 3 months ago)
Author:Lars C.
Commit:656d037b97424823944f6d829d957c9e623a384b
Message:uboot: fix nand error correction

Files: target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch (2 diffs)
target/linux/xburst/image/u-boot/patches/0002-add-xburst-support.patch (1 diff)

Change Details

target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch
11391139index 0000000..7b1cdf3
11401140--- /dev/null
11411141+++ b/cpu/mips/jz4740_nand.c
1142@@ -0,0 +1,198 @@
1142@@ -0,0 +1,199 @@
11431143+/*
11441144+ * Platform independend driver for JZ4740.
11451145+ *
...... 
13311331+ nand->ecc.calculate = jzsoc_nand_calculate_rs_ecc;
13321332+ nand->ecc.mode = NAND_ECC_HW;
13331333+ nand->ecc.size = 512;
1334+ nand->ecc.bytes = 9;
13341335+
13351336+ /* 20 us command delay time */
13361337+ nand->chip_delay = 20;
target/linux/xburst/image/u-boot/patches/0002-add-xburst-support.patch
12811281+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
12821282+
12831283+ 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];
12851285+ if (ecc_code[i] != 0xff)
12861286+ flag = 1;
12871287+ }

Archive Download the corresponding diff file



interactive