diff options
Diffstat (limited to 'arch/arm/mach-shmobile/pm-r8a7740.c')
| -rw-r--r-- | arch/arm/mach-shmobile/pm-r8a7740.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c index 21e5316d2d88..40b87aa1d448 100644 --- a/arch/arm/mach-shmobile/pm-r8a7740.c +++ b/arch/arm/mach-shmobile/pm-r8a7740.c | |||
| @@ -9,7 +9,9 @@ | |||
| 9 | * for more details. | 9 | * for more details. |
| 10 | */ | 10 | */ |
| 11 | #include <linux/console.h> | 11 | #include <linux/console.h> |
| 12 | #include <linux/suspend.h> | ||
| 12 | #include <mach/pm-rmobile.h> | 13 | #include <mach/pm-rmobile.h> |
| 14 | #include <mach/common.h> | ||
| 13 | 15 | ||
| 14 | #ifdef CONFIG_PM | 16 | #ifdef CONFIG_PM |
| 15 | static int r8a7740_pd_a4s_suspend(void) | 17 | static int r8a7740_pd_a4s_suspend(void) |
| @@ -58,3 +60,23 @@ void __init r8a7740_init_pm_domains(void) | |||
| 58 | } | 60 | } |
| 59 | 61 | ||
| 60 | #endif /* CONFIG_PM */ | 62 | #endif /* CONFIG_PM */ |
| 63 | |||
| 64 | #ifdef CONFIG_SUSPEND | ||
| 65 | static int r8a7740_enter_suspend(suspend_state_t suspend_state) | ||
| 66 | { | ||
| 67 | cpu_do_idle(); | ||
| 68 | return 0; | ||
| 69 | } | ||
| 70 | |||
| 71 | static void r8a7740_suspend_init(void) | ||
| 72 | { | ||
| 73 | shmobile_suspend_ops.enter = r8a7740_enter_suspend; | ||
| 74 | } | ||
| 75 | #else | ||
| 76 | static void r8a7740_suspend_init(void) {} | ||
| 77 | #endif | ||
| 78 | |||
| 79 | void __init r8a7740_pm_init(void) | ||
| 80 | { | ||
| 81 | r8a7740_suspend_init(); | ||
| 82 | } | ||
