Ivo Clarysse a47bfd2eb6 mtd: 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>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-05-14 01:02:53 +01:00
..
2010-05-13 21:23:06 +01:00
2010-05-14 01:02:53 +01:00
2010-05-13 21:23:06 +01:00
2009-09-04 09:38:14 +01:00
2010-02-26 17:05:26 +00:00
2010-02-26 17:05:26 +00:00
2010-02-26 17:05:26 +00:00
2010-02-26 19:06:50 +00:00
2010-02-26 17:05:26 +00:00