mtd: nand: Increase NAND_MAX_OOBSIZE

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Oct 24 20:59:03 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5c709ee9f33da4a07d94e3d48b297eb6f003fc61
Commit:     5c709ee9f33da4a07d94e3d48b297eb6f003fc61
Parent:     432dc821c90114f9b0e00f6752a700e937516ade
Author:     Brian Norris <norris at broadcom.com>
AuthorDate: Fri Aug 20 12:36:13 2010 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun Oct 24 23:37:51 2010 +0100

    mtd: nand: Increase NAND_MAX_OOBSIZE
    
    An increase in NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE is necessary
    in order to support many new chips. Among those:
    
    Toshiba TC58TxG4S2FBAxx  8KB page, 576B OOB
    Micron MT29F64G08CBAAA   8KB page, 448B OOB
    
    Signed-off-by: Brian Norris <norris at broadcom.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 include/linux/mtd/nand.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 102e12c..a8921c2 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -53,8 +53,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	256
-#define NAND_MAX_PAGESIZE	4096
+#define NAND_MAX_OOBSIZE	576
+#define NAND_MAX_PAGESIZE	8192
 
 /*
  * Constants for hardware specific CLE/ALE/NCE function



More information about the linux-mtd-cvs mailing list