]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mxc_nand: add support for multiple chips on V21 devices
authorBaruch Siach <baruch@tkos.co.il>
Mon, 14 Mar 2011 07:01:56 +0000 (09:01 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 00:47:08 +0000 (01:47 +0100)
commit7d39a862f52649c8c2a5874a4be00c752e0b3695
treec22ccf56a1910eab2688e2d68e70ccaac24cdfea
parent5720d480f250a80350663e6b19ef7e83d71738be
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