aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2010-11-16 16:50:55 +0800
committerLily Zhang <r58066@freescale.com>2010-11-17 13:27:12 +0800
commitfef2e7fec8b6fd5e510d9e8e6aa48b0186accdb6 (patch)
treec77c81945801af04d30e162d7ae8a0c7fb8f3b26
parent49bd154f4ea2ef13b0f6dde7ba571a66e0b4f8aa (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. */