Skip to contentSkip to conversation

mtd:Increase ecc bytes to support 8K page size NAND

PATCH New Prabhakar Kushwaha 2 participants 2 messages Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mtd:Increase ecc bytes to support 8K page size NAND

To support 8 bit ECC for 8K page size NAND flash, number of ecc bytes required are more than 128.

so increase eccpos array to support 256 entries.

---

Based upon git://git.denx.de/u-boot.git branch master

 include/mtd/mtd-abi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/mtd/mtd-abi.h +1 -1
index d51c1ab..83987dc 100644
@@ -162,7 +162,7 @@ struct nand_oobfree {
  */
 struct nand_ecclayout {
 	uint32_t eccbytes;
-	uint32_t eccpos[128];
+	uint32_t eccpos[256];
 	uint32_t oobavail;
 	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
 };
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/3 mtd:Increase ecc bytes to support 8K page size NAND

Quoted 18 lines · Prabhakar Kushwaha

To support 8 bit ECC for 8K page size NAND flash, number of ecc bytes required are more than 128.

so increase eccpos array to support 256 entries.

---

Based upon git://git.denx.de/u-boot.git branch master

 include/mtd/mtd-abi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/mtd/mtd-abi.h +0 -0
index d51c1ab..83987dc 100644

include/mtd/mtd-abi.h struct nand_oobfree { · line 168

Quoted 8 lines
include/mtd/mtd-abi.h +1 -1
@@ -162,7 +162,7 @@ struct nand_oobfree {
  */
 struct nand_ecclayout {
 	uint32_t eccbytes;
-	uint32_t eccpos[128];
+	uint32_t eccpos[256];
 	uint32_t oobavail;
 	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
 };

Could you bring over the Linux definition from 3.7.1 instead (in mtd.h rather than mtd-abi.h)? For some reason that change didn't make it into U-Boot when other stuff was synced.

-Scott