瀏覽代碼

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.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Stefan Roese 16 年之前
父節點
當前提交
fbdaafaee7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/mtd/nand.h

+ 1 - 1
include/linux/mtd/nand.h

@@ -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
 
 /*