17 #include <linux/serial_core.h>
23 #include <mach/irqs.h>
29 #include <mach/regs-sys.h>
30 #include <mach/regs-gpio.h>
31 #include <mach/regs-clock.h>
78 pr_err(
"Failed to start domain %s\n", pd->
name);
90 .power_off = s3c64xx_pd_off,
91 .power_on = s3c64xx_pd_on,
100 .power_off = s3c64xx_pd_off,
101 .power_on = s3c64xx_pd_on,
110 .power_off = s3c64xx_pd_off,
111 .power_on = s3c64xx_pd_on,
120 .power_off = s3c64xx_pd_off,
121 .power_on = s3c64xx_pd_on,
130 .power_off = s3c64xx_pd_off,
131 .power_on = s3c64xx_pd_on,
140 .power_off = s3c64xx_pd_off,
141 .power_on = s3c64xx_pd_on,
149 .power_off = s3c64xx_pd_off,
150 .power_on = s3c64xx_pd_on,
159 .power_off = s3c64xx_pd_off,
160 .power_on = s3c64xx_pd_on,
178 #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK
185 for (i = 0; i < 4; i++) {
186 if (clear & (1 << i))
215 #ifndef CONFIG_CPU_FREQ
249 s3c_pm_debug_smdkled(1 << 2, 0);
266 static int s3c64xx_cpu_suspend(
unsigned long arg)
283 s3c_pm_debug_smdkled(3 << 1, 0xf);
293 "mcr p15, 0, %0, c7, c10, 5\n\t"
294 "mcr p15, 0, %0, c7, c10, 4\n\t"
295 "mcr p15, 0, %0, c7, c0, 4" ::
"r" (
tmp));
299 panic(
"sleep resumed to originator?");
316 static void s3c64xx_pm_prepare(
void)
334 for (i = 0; i <
ARRAY_SIZE(s3c64xx_always_on_pm_domains); i++)
338 for (i = 0; i <
ARRAY_SIZE(s3c64xx_pm_domains); i++)
347 static __init int s3c64xx_pm_initcall(
void)
353 #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK
370 pm_genpd_poweroff_unused();