From mboxrd@z Thu Jan 1 00:00:00 1970 From: ivo.clarysse@gmail.com (Ivo Clarysse) Date: Thu, 8 Apr 2010 16:13:27 +0200 Subject: [PATCH v3 0/2] ARM: MXC: mxc_nand: support i.MX21 In-Reply-To: <20100408133303.GK3688@pengutronix.de> References: <20100407134039.GE3688@pengutronix.de> <20100408133303.GK3688@pengutronix.de> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Allow mxc_nand.c to function on i.MX21 SoCs, since: 1) On i.MX21, if the NFC_INT_MASK bit in NFC_CONFIG1 is set, the NFC_INT bit of NFC_CONFIG2 always reads out zero, even if an operation is completed. 2) On i.MX21, sending a RESET command to the NAND flash controller does not trigger an interrupt, nor does it cause the NFC_INT bit of NFC_CONFIG2 to get set. 3) After reset is performed, NFC registers are again in their default values. This patch series: - (Re-)sets all NFC registers after reset - Uses enable_irq / disable_irq_nosync instead of NFC_INT_MASK to mask NFC interrupts (allowing NFC_CONFIG2:NFC_INT to used on i.MX21)