]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 23 Oct 2013 22:45:27 +0000 (15:45 -0700)
commit2700730e51d946a0e82e6b25e40589f26b0822c9
treeb8cd20a73925c0b012dcd91a623c0ef46f954008
parent77d5a371d461c464cbbed2e9b8d4dc03f8da2bd1
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