diff options
author | Jason Liu <r64343@freescale.com> | 2010-11-16 17:00:16 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2010-11-17 13:15:59 +0800 |
commit | 68170d910ab607bfff58f9d347a79186d00e29c8 (patch) | |
tree | 88124faeb5e4866badef20b768b992c495d910c9 | |
parent | 2cbb0e33bd31c9a34fcf3313329c005ae4ad44d6 (diff) | |
download | u-boot-imx-68170d910ab607bfff58f9d347a79186d00e29c8.zip u-boot-imx-68170d910ab607bfff58f9d347a79186d00e29c8.tar.gz u-boot-imx-68170d910ab607bfff58f9d347a79186d00e29c8.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>
(cherry picked from commit a649f3032601d263899a97150c1e7f4fa09b2d19)
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 10 |
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. */ |