]> git.sur5r.net Git - u-boot/commitdiff
mtd: nand: Increase the max OOB size
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 15 Jun 2016 19:09:26 +0000 (21:09 +0200)
committerScott Wood <oss@buserror.net>
Mon, 25 Jul 2016 01:36:28 +0000 (20:36 -0500)
Some NANDs are now exposing 1664 OOB bytes per page. Adjust the
NAND_MAX_OOBSIZE value accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
include/linux/mtd/nand.h

index 29aae43cf2c323590dbdccc9367d680c6d3e3ead..87d72dbad6681387f19b9f2235779e89535d86bc 100644 (file)
@@ -48,7 +48,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       1216
+#define NAND_MAX_OOBSIZE       1664
 #define NAND_MAX_PAGESIZE      16384
 
 /*