summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2010-11-16 16:50:55 +0800
committerScott Sweeny <scott.sweeny@timesys.com>2011-01-19 11:50:25 -0500
commit43ed7df5f716cd91d1176ab7ebd21362ef9fb41a (patch)
treec77c81945801af04d30e162d7ae8a0c7fb8f3b26
parentfae57fcb8b956c9389d30cb373835bfea6c15a6b (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)
-rw-r--r--drivers/mtd/nand/mxc_nd2.c10
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. */