diff options
author | Jason Liu <r64343@freescale.com> | 2010-11-16 16:50:55 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2010-12-13 16:10:48 -0500 |
commit | 238be18f638800d0fe0b80c238e57bb48a046bd6 (patch) | |
tree | c77c81945801af04d30e162d7ae8a0c7fb8f3b26 /drivers/mtd/nand/mxc_nd2.c | |
parent | b3ac83f1031952acc75545d1e26174e1e10d27b9 (diff) |
ENGR00133749: NAND: Remove the 2G limitation from NAND driver
Remove the 2G limitation from NAND driver since currently kernel
can support more than 2GB NAND flash now. This commit will make
NAND driver rescan the whole NAND to create one BBT and store to
the last 4 blocks of the larger than 2GB NAND flash. This commit
will have no effect on the NAND which size is not larger than 2GB.
Signed-off-by: Jason Liu <r64343@freescale.com>
(cherry picked from commit 5790e8a3e8a3fabc4fe7ab5f4c3524f1791e073f)
Diffstat (limited to 'drivers/mtd/nand/mxc_nd2.c')
-rw-r--r-- | drivers/mtd/nand/mxc_nd2.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mtd/nand/mxc_nd2.c b/drivers/mtd/nand/mxc_nd2.c index 8d5c2866d8f9..5e45cc40f2fe 100644 --- a/drivers/mtd/nand/mxc_nd2.c +++ b/drivers/mtd/nand/mxc_nd2.c @@ -1326,16 +1326,6 @@ int nand_scan_mid(struct mtd_info *mtd) mtd->oobsize = dev_info->page_total_size_in_bytes & 0x3ff; mtd->erasesize = dev_info->block_size_in_pages * mtd->writesize; - /* limit to 2G size due to Kernel - * larger 4G space support,need fix - * it later - */ - if ((u32)mtd->size == 0) { - mtd->size = (u32)(1 << 31); - this->numchips = 1; - this->chipsize = mtd->size; - } - /* Calculate the address shift from the page size */ this->page_shift = ffs(mtd->writesize) - 1; /* Convert chipsize to number of pages per chip -1. */ |