summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2010-11-16 17:00:16 +0800
committerJason Liu <r64343@freescale.com>2010-11-16 17:00:16 +0800
commita649f3032601d263899a97150c1e7f4fa09b2d19 (patch)
tree7c76e62f76a62dd471eea6675d3e2512c621908d /drivers
parent1054bbc78f375e01676d68b66099e40a1f4d1109 (diff)
downloadu-boot-imx-a649f3032601d263899a97150c1e7f4fa09b2d19.zip
u-boot-imx-a649f3032601d263899a97150c1e7f4fa09b2d19.tar.gz
u-boot-imx-a649f3032601d263899a97150c1e7f4fa09b2d19.tar.bz2
ENGR00133756:UBOOT: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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxc_nand.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 4c5bbdb..a098c8f 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1166,16 +1166,6 @@ static int mxc_nand_scan_bbt(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. */