summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2014-10-10 15:15:01 +0900
committerJonghwa Lee <jonghwa3.lee@samsung.com>2014-10-10 15:27:19 +0900
commit56a51bfefcdb77d1a8bfd8503ec381aa466491c9 (patch)
tree55e67df89b31b2c4d7f34fdd97ec9cbb6303af01
parent3a30d401fe7f2a96d29769ab35fa7f0404e65366 (diff)
downloadlinux-3.10-56a51bfefcdb77d1a8bfd8503ec381aa466491c9.tar.gz
linux-3.10-56a51bfefcdb77d1a8bfd8503ec381aa466491c9.tar.bz2
linux-3.10-56a51bfefcdb77d1a8bfd8503ec381aa466491c9.zip
arm: exynos3250: rtc: Enable internal RTC's alarm wakeup irq.
This patch adds correspond irq number for EXYNOS3250's rtc alarm irq to make the irq to work as a wakeup source. Change-Id: I8970496a597729b8ad70d0e0bb893052e56e24c9 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
-rw-r--r--arch/arm/mach-exynos/include/mach/irqs.h4
-rw-r--r--arch/arm/plat-samsung/s5p-irq-pm.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/include/mach/irqs.h b/arch/arm/mach-exynos/include/mach/irqs.h
index 34ee14cd1d3..d1b528a7715 100644
--- a/arch/arm/mach-exynos/include/mach/irqs.h
+++ b/arch/arm/mach-exynos/include/mach/irqs.h
@@ -32,6 +32,10 @@
#define EXYNOS_IRQ_EINT16_31 IRQ_SPI(32)
+/* For EXYNOS3250 SoCs */
+#define EXYNOS3250_IRQ_RTC_ALARM IRQ_SPI(73)
+#define EXYNOS3250_IRQ_RTC_TIC IRQ_SPI(74)
+
/* For EXYNOS4 SoCs */
#define EXYNOS4_IRQ_EINT0 IRQ_SPI(16)
diff --git a/arch/arm/plat-samsung/s5p-irq-pm.c b/arch/arm/plat-samsung/s5p-irq-pm.c
index 7c1e3b7072f..7c453b5cb39 100644
--- a/arch/arm/plat-samsung/s5p-irq-pm.c
+++ b/arch/arm/plat-samsung/s5p-irq-pm.c
@@ -41,7 +41,10 @@ int s3c_irq_wake(struct irq_data *data, unsigned int state)
unsigned int irq_rtc_tic, irq_rtc_alarm;
#ifdef CONFIG_ARCH_EXYNOS
- if (soc_is_exynos5250()) {
+ if (soc_is_exynos3250()) {
+ irq_rtc_tic = EXYNOS3250_IRQ_RTC_TIC;
+ irq_rtc_alarm = EXYNOS3250_IRQ_RTC_ALARM;
+ } else if (soc_is_exynos5250()) {
irq_rtc_tic = EXYNOS5_IRQ_RTC_TIC;
irq_rtc_alarm = EXYNOS5_IRQ_RTC_ALARM;
} else {