summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2012-10-31 18:19:44 +0800
committerJason Liu <r64343@freescale.com>2012-10-31 20:14:35 +0800
commitf85e3ec9120e09058f2dec1968c089b30ae24c29 (patch)
tree9048e137db5feb55e8b67f078b952798e2b328e4
parent44f110fbe83b5b3be2981cf988f72a9ec1cf7328 (diff)
downloadu-boot-imx-f85e3ec9120e09058f2dec1968c089b30ae24c29.zip
u-boot-imx-f85e3ec9120e09058f2dec1968c089b30ae24c29.tar.gz
u-boot-imx-f85e3ec9120e09058f2dec1968c089b30ae24c29.tar.bz2
ENGR00231891-2 gpmi: fix the 4k page size limit
We may use the 8K page nand now. So expand the page size from 4k to 8K. Also expand the oobsize to 1K size. Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r--include/linux/mtd/nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 7310605..5a8a926 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -50,8 +50,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 (218 * CONFIG_SYS_NAND_MAX_CHIPS)
-#define NAND_MAX_PAGESIZE (4096 * CONFIG_SYS_NAND_MAX_CHIPS)
+#define NAND_MAX_OOBSIZE (1024 * CONFIG_SYS_NAND_MAX_CHIPS)
+#define NAND_MAX_PAGESIZE (8192 * CONFIG_SYS_NAND_MAX_CHIPS)
/*
* Constants for hardware specific CLE/ALE/NCE function