]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: gpmi: scan two nand chips
authorHuang Shijie <b32955@freescale.com>
Tue, 27 Aug 2013 09:29:06 +0000 (17:29 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:03 +0000 (23:33 -0800)
commit37c6b2820564f8655cb97886223b2778c1de49c7
tree5a99ab83a726da21a825a60beea5000c9a5d2910
parente7a16838059bc74517f4496be762c04dbbaaac94
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>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c