Skip to contentSkip to conversation

nand: Change NAND_MAX_OOBSIZE to 218 as needed for some 4k page devices

PATCH New Stefan Roese 2 participants 2 messages Jun 4, 2009 – Jul 16, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/7 nand: Change NAND_MAX_OOBSIZE to 218 as needed for some 4k page devices

This is needed for the MPC512x NAND driver (fsl_nfc_nand.c) which already defines such a 4k plus 218 bytes ECC layout.

---
 include/linux/mtd/nand.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mtd/nand.h +1 -1
index a4ad571..3e0044b 100644
@@ -50,7 +50,7 @@ extern void nand_wait_ready(struct mtd_info *mtd);
  * is supported now. If you add a chip with bigger oobsize/page
  * adjust this accordingly.
  */
-#define NAND_MAX_OOBSIZE	128
+#define NAND_MAX_OOBSIZE	218
 #define NAND_MAX_PAGESIZE	4096
 
 /*
Signature · 1 line
1.6.3.2
#1 lore raw

PATCH 7/7 nand: Change NAND_MAX_OOBSIZE to 218 as needed for some 4k page devices

Quoted 6 lines · Stefan Roese

This is needed for the MPC512x NAND driver (fsl_nfc_nand.c) which already defines such a 4k plus 218 bytes ECC layout.

---

Applied to u-boot-nand-flash. Sorry for the delay, it got lost in a pile of old e-mail.

-Scott