[U-Boot] [PATCH 1/3] mtd:Increase ecc bytes to support 8K page size NAND

Prabhakar Kushwaha prabhakar at freescale.com
Tue Sep 24 10:16:49 CEST 2013


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.

Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>
---

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

 include/mtd/mtd-abi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index d51c1ab..83987dc 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -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];
 };
-- 
1.7.9.5





More information about the U-Boot mailing list