rtc: sh-rtc: Add Single IRQ Support
authorMagnus Damm <damm@igel.co.jp>
Tue, 24 Feb 2009 13:11:03 +0000 (22:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 27 Feb 2009 07:50:00 +0000 (16:50 +0900)
commit5e084a1586a864d4e9b3f2edbb1bd3429909d652
tree19a9f70ccc0fe1c746fbeccd108b6366f5021ea7
parent973e5d525d39be6f9f6c38d37aacf03efda02e60
rtc: sh-rtc: Add Single IRQ Support

Add support for single IRQ hardware to the sh-rtc driver.

This is useful for processors with limited interrupt masking
support such as sh7750 and sh7780. With this patch in place we
can add logic to the intc code that merges all RTC vectors into
a single linux interrupt with proper masking/unmasking support.

Specify a single IRQ in the platform data to use this new shared
IRQ feature. Separate Periodic/Carry/Alarm IRQs are still supported.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/rtc/rtc-sh.c