summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-05-15 13:32:43 +0200
committerNicolas Pitre <nico@fluxnic.net>2011-05-16 15:00:10 -0400
commit4748058c5cbf70b3adfa37204c047fcb29f335c0 (patch)
tree2fe55e56de078f3cd816418a23b561bfb56883dd /arch/arm/mach-kirkwood
parentf6eaccb30fb4381da05e1e04f7fb9b956ab22826 (diff)
downloadlinux-4748058c5cbf70b3adfa37204c047fcb29f335c0.tar.gz
linux-4748058c5cbf70b3adfa37204c047fcb29f335c0.tar.bz2
linux-4748058c5cbf70b3adfa37204c047fcb29f335c0.zip
ARM: kirkwood: Add support for RTC interrupts which allows RTC alarms.
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>
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r--arch/arm/mach-kirkwood/common.c2
-rw-r--r--arch/arm/mach-kirkwood/include/mach/irqs.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index b77050e96ab6..f6868fc2a7f0 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -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);
}
diff --git a/arch/arm/mach-kirkwood/include/mach/irqs.h b/arch/arm/mach-kirkwood/include/mach/irqs.h
index 9da2eb59180b..2bf8161e3b51 100644
--- a/arch/arm/mach-kirkwood/include/mach/irqs.h
+++ b/arch/arm/mach-kirkwood/include/mach/irqs.h
@@ -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