mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 00:19:54 +02:00
Merge branch 'xburst' of git@projects.qi-hardware.com:openwrt-xburst into xburst
This commit is contained in:
commit
19a2079a92
@ -1139,7 +1139,7 @@ new file mode 100644
|
|||||||
index 0000000..7b1cdf3
|
index 0000000..7b1cdf3
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/cpu/mips/jz4740_nand.c
|
+++ b/cpu/mips/jz4740_nand.c
|
||||||
@@ -0,0 +1,198 @@
|
@@ -0,0 +1,199 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Platform independend driver for JZ4740.
|
+ * Platform independend driver for JZ4740.
|
||||||
+ *
|
+ *
|
||||||
@ -1331,6 +1331,7 @@ index 0000000..7b1cdf3
|
|||||||
+ nand->ecc.calculate = jzsoc_nand_calculate_rs_ecc;
|
+ nand->ecc.calculate = jzsoc_nand_calculate_rs_ecc;
|
||||||
+ nand->ecc.mode = NAND_ECC_HW;
|
+ nand->ecc.mode = NAND_ECC_HW;
|
||||||
+ nand->ecc.size = 512;
|
+ nand->ecc.size = 512;
|
||||||
|
+ nand->ecc.bytes = 9;
|
||||||
+
|
+
|
||||||
+ /* 20 us command delay time */
|
+ /* 20 us command delay time */
|
||||||
+ nand->chip_delay = 20;
|
+ nand->chip_delay = 20;
|
||||||
|
@ -1281,7 +1281,7 @@ index 360b070..88717e9 100644
|
|||||||
+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
|
+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize);
|
||||||
+
|
+
|
||||||
+ for (i = 0; i < chip->ecc.total; i++) {
|
+ for (i = 0; i < chip->ecc.total; i++) {
|
||||||
+ ecc_code[i] = chip->oob_poi[eccpos[i]];
|
+ ecc_code[i] = chip->oob_poi[CONFIG_NAND_ECC_POS + i];
|
||||||
+ if (ecc_code[i] != 0xff)
|
+ if (ecc_code[i] != 0xff)
|
||||||
+ flag = 1;
|
+ flag = 1;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user