25 #include <linux/errno.h>
26 #include <linux/time.h>
27 #include <linux/device.h>
32 #include <mach/hardware.h>
36 #include <mach/regs-gpio.h>
42 static void s3c2410_pm_prepare(
void)
51 if (machine_is_h1940()) {
54 unsigned long calc = 0;
58 for (ptr = 0; ptr < 0x40000; ptr += 0x400)
67 if (machine_is_rx3715() || machine_is_rx1950()) {
70 unsigned long calc = 0;
74 for (ptr = 0; ptr < 0x40000; ptr += 0x4)
80 if (machine_is_aml_m5900()) {
85 if (machine_is_rx1950()) {
98 static void s3c2410_pm_resume(
void)
108 if (machine_is_aml_m5900()) {
115 .resume = s3c2410_pm_resume,
126 #if defined(CONFIG_CPU_S3C2410)
128 .
name =
"s3c2410_pm",
130 .add_dev = s3c2410_pm_add,
135 static int __init s3c2410_pm_drvinit(
void)
143 .
name =
"s3c2410a_pm",
145 .add_dev = s3c2410_pm_add,
148 static int __init s3c2410a_pm_drvinit(
void)
156 #if defined(CONFIG_CPU_S3C2440)
158 .
name =
"s3c2440_pm",
160 .add_dev = s3c2410_pm_add,
163 static int __init s3c2440_pm_drvinit(
void)
171 #if defined(CONFIG_CPU_S3C2442)
173 .
name =
"s3c2442_pm",
175 .add_dev = s3c2410_pm_add,
178 static int __init s3c2442_pm_drvinit(
void)