mtd: nand: Increase max sizes of OOB and Page size
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 28 Apr 2015 12:46:03 +0000 (18:16 +0530)
committerScott Wood <scottwood@freescale.com>
Wed, 26 Aug 2015 03:53:58 +0000 (22:53 -0500)
Increase max sizes for OOB, Page size and eccpos to
suit for Micron MT29F32G08 part

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
include/linux/mtd/mtd.h
include/linux/mtd/nand.h

index cf5cda15d1ae0906504a4bb4d8af7caf8b919f90..bc4d9bf8f9e5b29bac102428df17a73874072c58 100644 (file)
@@ -101,7 +101,7 @@ struct mtd_oob_ops {
 #ifdef CONFIG_SYS_NAND_MAX_ECCPOS
 #define MTD_MAX_ECCPOS_ENTRIES_LARGE   CONFIG_SYS_NAND_MAX_ECCPOS
 #else
-#define MTD_MAX_ECCPOS_ENTRIES_LARGE   640
+#define MTD_MAX_ECCPOS_ENTRIES_LARGE   680
 #endif
 
 /*
index 77b50ddcde2b3cb1e5ddd93ea5403d2bdc7a7cab..23072fdfc3cfd21c32e2306018b37682a7ebb52c 100644 (file)
@@ -46,8 +46,8 @@ 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       744
-#define NAND_MAX_PAGESIZE      8192
+#define NAND_MAX_OOBSIZE       1216
+#define NAND_MAX_PAGESIZE      16384
 
 /*
  * Constants for hardware specific CLE/ALE/NCE function