aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-08-27 05:29:06 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-11-07 02:33:03 -0500
commita5370e9ed567e68ac261b28a242832eb09fe8559 (patch)
tree5a99ab83a726da21a825a60beea5000c9a5d2910 /drivers/mtd
parenta7c12d016aa50762e4816308f46e2572ff9b5a01 (diff)
mtd: gpmi: scan two nand chips
Some nand chip has two DIEs in a single chip, such as Micron MT29F32G08QAA. Each die has its own chip select pin, so this chip acts as two nand chips. If we only scan one chip, we may find that we only get 2G for this chip, but in actually, this chip's size is 4G. So scan two chips by default. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/gpmi-nand/gpmi-nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index a5c60c4a62b5..7ac22802e4dc 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -1674,7 +1674,7 @@ static int gpmi_nfc_init(struct gpmi_nand_data *this)
1674 if (ret) 1674 if (ret)
1675 goto err_out; 1675 goto err_out;
1676 1676
1677 ret = nand_scan_ident(mtd, 1, NULL); 1677 ret = nand_scan_ident(mtd, 2, NULL);
1678 if (ret) 1678 if (ret)
1679 goto err_out; 1679 goto err_out;
1680 1680