mtd: mxc_nand: add support for multiple chips on V21 devices
commitd178e3e88f538323eb483df1563c8edfb71fdb39
authorBaruch Siach <baruch@tkos.co.il>
Mon, 14 Mar 2011 07:01:56 +0000 (14 09:01 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 00:47:08 +0000 (25 01:47 +0100)
treec22ccf56a1910eab2688e2d68e70ccaac24cdfea
parent61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf
mtd: mxc_nand: add support for multiple chips on V21 devices

Do the following to add support for up to 4 chips on V21 devices (i.MX25 and
i.MX35):

* implement .select_chip for V21
* adjust existing NFC_V1_V2_BUF_ADDR writes to take chip select into account
* unlock all chip selects at preset_v1_v2()
* scan up to 4 devices at .probe

This has been tested on i.MX25 with two attached NAND chip (on one die).

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c