diff options
author | Allen Xu <b45815@freescale.com> | 2014-12-16 20:30:08 -0600 |
---|---|---|
committer | Allen Xu <b45815@freescale.com> | 2014-12-16 22:36:20 -0600 |
commit | 9045626dbc7798cc340f64699bc9bd35c537498a (patch) | |
tree | be2e411a897b8232c2c2e3b84f66b709f1d7c7ed /include | |
parent | bbf8af8909842d6e9f6c2175eade998faf58a0d6 (diff) | |
download | u-boot-imx-9045626dbc7798cc340f64699bc9bd35c537498a.zip u-boot-imx-9045626dbc7798cc340f64699bc9bd35c537498a.tar.gz u-boot-imx-9045626dbc7798cc340f64699bc9bd35c537498a.tar.bz2 |
MLK-10035-2: supports NAND chips with oob size up to 744 byte
Update the u-boot code to support NAND chips with oob size up to 744
byte.
For the NAND flash MT29F32G08CBADA, which consists of 2 planes x 1064
blocks per plane. Obviously the block number is not power-of-2. But all
MTD driver assumes the page per block and block per plane must be a
power of 2 number. So the last 40 blocks in each plane must be
truncated.
Signed-off-by: Allen Xu <b45815@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/nand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 0546565..2636a98 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -46,7 +46,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 640 +#define NAND_MAX_OOBSIZE 744 #define NAND_MAX_PAGESIZE 8192 /* |