aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa25x.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/pxa25x.c')
-rw-r--r--arch/arm/mach-pxa/pxa25x.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
index c1f21739bf71..8560439ba0b9 100644
--- a/arch/arm/mach-pxa/pxa25x.c
+++ b/arch/arm/mach-pxa/pxa25x.c
@@ -23,6 +23,7 @@
23 23
24#include <asm/hardware.h> 24#include <asm/hardware.h>
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pm.h>
26 27
27#include "generic.h" 28#include "generic.h"
28 29
@@ -105,7 +106,7 @@ EXPORT_SYMBOL(get_lcdclk_frequency_10khz);
105 106
106#ifdef CONFIG_PM 107#ifdef CONFIG_PM
107 108
108int pxa_cpu_pm_prepare(suspend_state_t state) 109int pxa_pm_prepare(suspend_state_t state)
109{ 110{
110 switch (state) { 111 switch (state) {
111 case PM_SUSPEND_MEM: 112 case PM_SUSPEND_MEM:
@@ -133,4 +134,21 @@ void pxa_cpu_pm_enter(suspend_state_t state)
133 } 134 }
134} 135}
135 136
137static struct pm_ops pxa25x_pm_ops = {
138 .prepare = pxa_pm_prepare,
139 .enter = pxa_pm_enter,
140 .valid = pm_valid_only_mem,
141};
136#endif 142#endif
143
144static int __init pxa25x_init(void)
145{
146 if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
147#ifdef CONFIG_PM
148 pm_set_ops(&pxa25x_pm_ops);
149#endif
150 }
151 return 0;
152}
153
154subsys_initcall(pxa25x_init);