]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mtd: nand: Increase max sizes of OOB and Page size
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 27 Feb 2015 09:32:17 +0000 (15:02 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Mar 2015 13:11:11 +0000 (14:11 +0100)
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>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/linux/mtd/mtd.h
include/linux/mtd/nand.h

index 86664132759ec33aca7c0176c300ce6c819a3e28..2c9ea2ff5897d74f9924c5c69ed3d22bb9eceb17 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 8438490fe42029e48c8c9f1c0e23858c4d75cebd..f91a9b92d465aac967e28f7d1e199df1638beb8b 100644 (file)
@@ -64,8 +64,8 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
  * 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
 #endif
 
 /*