diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-11-23 04:00:03 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-12-16 01:31:20 -0500 |
commit | f113fe4e844be15394edcbc32b0ec196cdd0a0ff (patch) | |
tree | dceebef68696118b028354e1b6ec94f45bc8ed94 /arch/arm/mach-pxa/pxa25x.c | |
parent | 2a125dd56b3a853701063fe8a678ad7603e385fd (diff) |
ARM: pxa: introduce pxa2xx_clock_sysclass for clock suspend/resume
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa25x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa25x.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index 65051bb6d62c..3f5241c84894 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c | |||
@@ -222,20 +222,17 @@ static struct clk_lookup pxa25x_hwuart_clkreg = | |||
222 | */ | 222 | */ |
223 | enum { | 223 | enum { |
224 | SLEEP_SAVE_PSTR, | 224 | SLEEP_SAVE_PSTR, |
225 | SLEEP_SAVE_CKEN, | ||
226 | SLEEP_SAVE_COUNT | 225 | SLEEP_SAVE_COUNT |
227 | }; | 226 | }; |
228 | 227 | ||
229 | 228 | ||
230 | static void pxa25x_cpu_pm_save(unsigned long *sleep_save) | 229 | static void pxa25x_cpu_pm_save(unsigned long *sleep_save) |
231 | { | 230 | { |
232 | SAVE(CKEN); | ||
233 | SAVE(PSTR); | 231 | SAVE(PSTR); |
234 | } | 232 | } |
235 | 233 | ||
236 | static void pxa25x_cpu_pm_restore(unsigned long *sleep_save) | 234 | static void pxa25x_cpu_pm_restore(unsigned long *sleep_save) |
237 | { | 235 | { |
238 | RESTORE(CKEN); | ||
239 | RESTORE(PSTR); | 236 | RESTORE(PSTR); |
240 | } | 237 | } |
241 | 238 | ||
@@ -358,7 +355,9 @@ static struct sys_device pxa25x_sysdev[] = { | |||
358 | .cls = &pxa2xx_mfp_sysclass, | 355 | .cls = &pxa2xx_mfp_sysclass, |
359 | }, { | 356 | }, { |
360 | .cls = &pxa_gpio_sysclass, | 357 | .cls = &pxa_gpio_sysclass, |
361 | }, | 358 | }, { |
359 | .cls = &pxa2xx_clock_sysclass, | ||
360 | } | ||
362 | }; | 361 | }; |
363 | 362 | ||
364 | static int __init pxa25x_init(void) | 363 | static int __init pxa25x_init(void) |