diff options
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/pm.h | 14 | ||||
-rw-r--r-- | arch/arm/plat-samsung/pm-debug.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/pm.c | 20 |
3 files changed, 12 insertions, 23 deletions
diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h index e17d871b934c..7f415ce74591 100644 --- a/arch/arm/plat-samsung/include/plat/pm.h +++ b/arch/arm/plat-samsung/include/plat/pm.h | |||
@@ -43,7 +43,11 @@ extern unsigned long s3c_irqwake_eintmask; | |||
43 | 43 | ||
44 | /* IRQ masks for IRQs allowed to go to sleep (see irq.c) */ | 44 | /* IRQ masks for IRQs allowed to go to sleep (see irq.c) */ |
45 | extern unsigned long s3c_irqwake_intallow; | 45 | extern unsigned long s3c_irqwake_intallow; |
46 | #ifdef CONFIG_PM_SLEEP | ||
46 | extern unsigned long s3c_irqwake_eintallow; | 47 | extern unsigned long s3c_irqwake_eintallow; |
48 | #else | ||
49 | #define s3c_irqwake_eintallow 0 | ||
50 | #endif | ||
47 | 51 | ||
48 | /* per-cpu sleep functions */ | 52 | /* per-cpu sleep functions */ |
49 | 53 | ||
@@ -58,16 +62,20 @@ extern unsigned long s3c_pm_flags; | |||
58 | 62 | ||
59 | extern int s3c2410_cpu_suspend(unsigned long); | 63 | extern int s3c2410_cpu_suspend(unsigned long); |
60 | 64 | ||
61 | #ifdef CONFIG_SAMSUNG_PM | 65 | #ifdef CONFIG_PM_SLEEP |
62 | extern int s3c_irq_wake(struct irq_data *data, unsigned int state); | 66 | extern int s3c_irq_wake(struct irq_data *data, unsigned int state); |
63 | extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); | ||
64 | extern void s3c_cpu_resume(void); | 67 | extern void s3c_cpu_resume(void); |
65 | #else | 68 | #else |
66 | #define s3c_irq_wake NULL | 69 | #define s3c_irq_wake NULL |
67 | #define s3c_irqext_wake NULL | ||
68 | #define s3c_cpu_resume NULL | 70 | #define s3c_cpu_resume NULL |
69 | #endif | 71 | #endif |
70 | 72 | ||
73 | #ifdef CONFIG_SAMSUNG_PM | ||
74 | extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); | ||
75 | #else | ||
76 | #define s3c_irqext_wake NULL | ||
77 | #endif | ||
78 | |||
71 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK | 79 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK |
72 | /** | 80 | /** |
73 | * s3c_pm_debug_smdkled() - Debug PM suspend/resume via SMDK Board LEDs | 81 | * s3c_pm_debug_smdkled() - Debug PM suspend/resume via SMDK Board LEDs |
diff --git a/arch/arm/plat-samsung/pm-debug.c b/arch/arm/plat-samsung/pm-debug.c index 39609601f407..64e15da33b42 100644 --- a/arch/arm/plat-samsung/pm-debug.c +++ b/arch/arm/plat-samsung/pm-debug.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <plat/pm-common.h> | 23 | #include <plat/pm-common.h> |
24 | 24 | ||
25 | #ifdef CONFIG_SAMSUNG_ATAGS | 25 | #ifdef CONFIG_SAMSUNG_ATAGS |
26 | #include <plat/pm.h> | ||
26 | #include <mach/pm-core.h> | 27 | #include <mach/pm-core.h> |
27 | #else | 28 | #else |
28 | static inline void s3c_pm_debug_init_uart(void) {} | 29 | static inline void s3c_pm_debug_init_uart(void) {} |
diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c index f8c0f9797dcf..82777c649774 100644 --- a/arch/arm/plat-samsung/pm.c +++ b/arch/arm/plat-samsung/pm.c | |||
@@ -65,26 +65,6 @@ int s3c_irqext_wake(struct irq_data *data, unsigned int state) | |||
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | /* s3c2410_pm_show_resume_irqs | ||
69 | * | ||
70 | * print any IRQs asserted at resume time (ie, we woke from) | ||
71 | */ | ||
72 | static void __maybe_unused s3c_pm_show_resume_irqs(int start, | ||
73 | unsigned long which, | ||
74 | unsigned long mask) | ||
75 | { | ||
76 | int i; | ||
77 | |||
78 | which &= ~mask; | ||
79 | |||
80 | for (i = 0; i <= 31; i++) { | ||
81 | if (which & (1L<<i)) { | ||
82 | S3C_PMDBG("IRQ %d asserted at resume\n", start+i); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | |||
87 | |||
88 | void (*pm_cpu_prep)(void); | 68 | void (*pm_cpu_prep)(void); |
89 | int (*pm_cpu_sleep)(unsigned long); | 69 | int (*pm_cpu_sleep)(unsigned long); |
90 | 70 | ||