ARM: pxa: introduce pxa2xx_clock_sysclass for clock suspend/resume

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
Eric Miao
2010-11-23 17:00:03 +08:00
parent 2a125dd56b
commit f113fe4e84
4 changed files with 35 additions and 8 deletions

View File

@@ -222,20 +222,17 @@ static struct clk_lookup pxa25x_hwuart_clkreg =
*/
enum {
SLEEP_SAVE_PSTR,
SLEEP_SAVE_CKEN,
SLEEP_SAVE_COUNT
};
static void pxa25x_cpu_pm_save(unsigned long *sleep_save)
{
SAVE(CKEN);
SAVE(PSTR);
}
static void pxa25x_cpu_pm_restore(unsigned long *sleep_save)
{
RESTORE(CKEN);
RESTORE(PSTR);
}
@@ -358,7 +355,9 @@ static struct sys_device pxa25x_sysdev[] = {
.cls = &pxa2xx_mfp_sysclass,
}, {
.cls = &pxa_gpio_sysclass,
},
}, {
.cls = &pxa2xx_clock_sysclass,
}
};
static int __init pxa25x_init(void)