]> bbs.cooldavid.org Git - net-next-2.6.git/commit
MXC: mxc_nand: support i.MX21
authorIvo Clarysse <ivo.clarysse@gmail.com>
Thu, 8 Apr 2010 14:16:51 +0000 (16:16 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 14 Apr 2010 06:58:47 +0000 (08:58 +0200)
commit63f4079b6a90e2a8ee64c5900a6d4d0bcb79bc65
tree3b271536bc234c3a2d977797a36ba017917d5b67
parent7422f27a8ad7f6a7474e324a61e5a7f8be166c25
MXC: mxc_nand: support i.MX21

On i.MX21 SoCs, if the NFC_CONFIG1:NFC_INT_MASK bit is set,
NFC_CONFIG2:NFC_INT always reads out zero, even if an
operation is completed.  This patch uses enable_irq and
disable_irq_nosync instead of NFC_CONFIG1:NFC_INT_MASK to
mask NFC interrupts.  This allows NFC_CONFIG2:NFC_INT to also
be used to detect operation completion on i.MX21.

The i.MX21 NFC does not signal reset completion using
NFC_CONFIG1:NFC_INT_MASK, so instead reset completion is
tested by checking if NFC_CONFIG2 becomes 0.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/mtd/nand/mxc_nand.c