diff options
author | Heiko Stuebner <heiko@sntech.de> | 2013-02-12 13:09:10 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-03-05 06:20:59 -0500 |
commit | 592957085e3763b9339a6a281f1aeb1247cdd245 (patch) | |
tree | ebecf19830b1dddb590fa2923c9a8cec8788b6d9 /arch/arm/mach-s3c24xx/pm-s3c2412.c | |
parent | f0301673ff7ad8aae45c4a95613771d34b1cf052 (diff) |
ARM: S3C24XX: use samsung_sync_wakemask in s3c2412 pm
Originally the s3c2412 used a overidden irq chip to set the rtc wakeup flag.
But with using the samsung_sync_wakemask function the same can be achieved
without introducing soc specific irq functions.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx/pm-s3c2412.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/pm-s3c2412.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/pm-s3c2412.c b/arch/arm/mach-s3c24xx/pm-s3c2412.c index 4c4bc1c83b77..d75f95e487ee 100644 --- a/arch/arm/mach-s3c24xx/pm-s3c2412.c +++ b/arch/arm/mach-s3c24xx/pm-s3c2412.c | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #include <plat/cpu.h> | 30 | #include <plat/cpu.h> |
31 | #include <plat/pm.h> | 31 | #include <plat/pm.h> |
32 | #include <plat/wakeup-mask.h> | ||
32 | 33 | ||
33 | #include "regs-dsc.h" | 34 | #include "regs-dsc.h" |
34 | #include "s3c2412-power.h" | 35 | #include "s3c2412-power.h" |
@@ -51,8 +52,15 @@ static int s3c2412_cpu_suspend(unsigned long arg) | |||
51 | return 1; /* Aborting suspend */ | 52 | return 1; /* Aborting suspend */ |
52 | } | 53 | } |
53 | 54 | ||
55 | /* mapping of interrupts to parts of the wakeup mask */ | ||
56 | static struct samsung_wakeup_mask wake_irqs[] = { | ||
57 | { .irq = IRQ_RTC, .bit = S3C2412_PWRCFG_RTC_MASKIRQ, }, | ||
58 | }; | ||
59 | |||
54 | static void s3c2412_pm_prepare(void) | 60 | static void s3c2412_pm_prepare(void) |
55 | { | 61 | { |
62 | samsung_sync_wakemask(S3C2412_PWRCFG, | ||
63 | wake_irqs, ARRAY_SIZE(wake_irqs)); | ||
56 | } | 64 | } |
57 | 65 | ||
58 | static int s3c2412_pm_add(struct device *dev, struct subsys_interface *sif) | 66 | static int s3c2412_pm_add(struct device *dev, struct subsys_interface *sif) |