]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: GPIO: IRQSTATUS2 workaround for retention state
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Mon, 25 Sep 2006 09:41:46 +0000 (12:41 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Sep 2006 09:41:46 +0000 (12:41 +0300)
commitbee7930f4aa501de4e3c793640c3af31fd3867e2
tree2df6d29c65e21ba82f1ac86ae42a5a7f16c48d74
parent0d9356cbb5d7a0bc8628f74fb15fd7268372c7fe
ARM: OMAP: GPIO: IRQSTATUS2 workaround for retention state

In OMAP2420, an incoming GPIO interrupt always sets both GPIO_IRQSTATUS1
and GPIO_IRQSTATUS2, even if the relevant bit is disabled in
GPIO_IRQENABLE1/2 and DSP doesn't use GPIO at all. GPIO_IRQSTATUS1
is for MPU and GPIO_IRQSTATUS2 is for DSP. If IRQSTATUS is set, this
will prevent the system from going to idle state. This patch also clears
IRQSTATUS2 to avoid the above situation.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio.c