[MTD] [NAND] Support multiple chips in CAFÉ driver
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 2 May 2007 11:26:37 +0000 (12:26 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 2 May 2007 11:26:37 +0000 (12:26 +0100)
commit048c37b4907ecf0e55100365e20758667f0bd27d
tree19ed5e6fb007cb94b58377408eb4fdd24b1dc4f0
parent14448005abd10887a2d361e20e04760dc3d8482f
[MTD] [NAND] Support multiple chips in CAFÉ driver

The CAFÉ can handle two chip on separate chipselect lines. Hook up the
undocumented chipselect bits in the driver and probe both.

In the case of OLPC, it's not actually two separate devices -- it's a
single '1GiB' package with two 512MiB dies internally. So clear the
NAND_BBT_PERCHIP flag to treat it as a single chip for BBT purposes, and
make life easier for the firmware.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/cafe_nand.c