diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index b239c1ab3ed9..a1c3ab26ce63 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -103,30 +103,6 @@ static struct clk_lookup pxa3xx_clkregs[] = { | |||
103 | static void __iomem *sram; | 103 | static void __iomem *sram; |
104 | static unsigned long wakeup_src; | 104 | static unsigned long wakeup_src; |
105 | 105 | ||
106 | #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x | ||
107 | #define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x] | ||
108 | |||
109 | enum { SLEEP_SAVE_CKENA, | ||
110 | SLEEP_SAVE_CKENB, | ||
111 | SLEEP_SAVE_ACCR, | ||
112 | |||
113 | SLEEP_SAVE_COUNT, | ||
114 | }; | ||
115 | |||
116 | static void pxa3xx_cpu_pm_save(unsigned long *sleep_save) | ||
117 | { | ||
118 | SAVE(CKENA); | ||
119 | SAVE(CKENB); | ||
120 | SAVE(ACCR); | ||
121 | } | ||
122 | |||
123 | static void pxa3xx_cpu_pm_restore(unsigned long *sleep_save) | ||
124 | { | ||
125 | RESTORE(ACCR); | ||
126 | RESTORE(CKENA); | ||
127 | RESTORE(CKENB); | ||
128 | } | ||
129 | |||
130 | /* | 106 | /* |
131 | * Enter a standby mode (S0D1C2 or S0D2C2). Upon wakeup, the dynamic | 107 | * Enter a standby mode (S0D1C2 or S0D2C2). Upon wakeup, the dynamic |
132 | * memory controller has to be reinitialised, so we place some code | 108 | * memory controller has to be reinitialised, so we place some code |
@@ -225,9 +201,6 @@ static int pxa3xx_cpu_pm_valid(suspend_state_t state) | |||
225 | } | 201 | } |
226 | 202 | ||
227 | static struct pxa_cpu_pm_fns pxa3xx_cpu_pm_fns = { | 203 | static struct pxa_cpu_pm_fns pxa3xx_cpu_pm_fns = { |
228 | .save_count = SLEEP_SAVE_COUNT, | ||
229 | .save = pxa3xx_cpu_pm_save, | ||
230 | .restore = pxa3xx_cpu_pm_restore, | ||
231 | .valid = pxa3xx_cpu_pm_valid, | 204 | .valid = pxa3xx_cpu_pm_valid, |
232 | .enter = pxa3xx_cpu_pm_enter, | 205 | .enter = pxa3xx_cpu_pm_enter, |
233 | }; | 206 | }; |
@@ -466,7 +439,9 @@ static struct sys_device pxa3xx_sysdev[] = { | |||
466 | .cls = &pxa3xx_mfp_sysclass, | 439 | .cls = &pxa3xx_mfp_sysclass, |
467 | }, { | 440 | }, { |
468 | .cls = &pxa_gpio_sysclass, | 441 | .cls = &pxa_gpio_sysclass, |
469 | }, | 442 | }, { |
443 | .cls = &pxa3xx_clock_sysclass, | ||
444 | } | ||
470 | }; | 445 | }; |
471 | 446 | ||
472 | static int __init pxa3xx_init(void) | 447 | static int __init pxa3xx_init(void) |