]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: kirkwood: Add support for RTC interrupts which allows RTC alarms.
authorAndrew Lunn <andrew@lunn.ch>
Sun, 15 May 2011 11:32:43 +0000 (13:32 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 16 May 2011 19:00:10 +0000 (15:00 -0400)
Tested using the test program in Documentation/rtc.txt

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/mach-kirkwood/common.c
arch/arm/mach-kirkwood/include/mach/irqs.h

index b77050e96ab6b69e7c7a54aeef95ebb60fae4593..f6868fc2a7f0efecc7082b753b898c8e069d745b 100644 (file)
@@ -328,7 +328,7 @@ void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts,
  ****************************************************************************/
 static void __init kirkwood_rtc_init(void)
 {
-       orion_rtc_init(RTC_PHYS_BASE, NO_IRQ);
+       orion_rtc_init(RTC_PHYS_BASE, IRQ_KIRKWOOD_RTC);
 }
 
 
index 9da2eb59180b2128af2d14bed71091d2bd574b1d..2bf8161e3b519c37417f94e50e9cb57ec69c215c 100644 (file)
@@ -51,6 +51,7 @@
 #define IRQ_KIRKWOOD_GPIO_HIGH_16_23   41
 #define IRQ_KIRKWOOD_GE00_ERR  46
 #define IRQ_KIRKWOOD_GE01_ERR  47
+#define IRQ_KIRKWOOD_RTC        53
 
 /*
  * KIRKWOOD General Purpose Pins