Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355501
b: refs/heads/master
c: 895d3b5
h: refs/heads/master
i:
  355499: 4049617
v: v3
  • Loading branch information
Bastian Hecht authored and Simon Horman committed Jan 25, 2013
1 parent 2ee1b0a commit 141f862
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13baf88bd69ed3cf7e2374eec4a7128f62ae9c1f
refs/heads/master: 895d3b53fd910f78c52cba89243107fb132538f3
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-shmobile/board-armadillo800eva.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,8 @@ static void __init eva_init(void)
rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device);
if (usb)
rmobile_add_device_to_domain("A3SP", usb);

r8a7740_pm_init();
}

static void __init eva_earlytimer_init(void)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-shmobile/include/mach/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ extern void r8a7740_add_early_devices(void);
extern void r8a7740_add_standard_devices(void);
extern void r8a7740_clock_init(u8 md_ck);
extern void r8a7740_pinmux_init(void);
extern void r8a7740_pm_init(void);

extern void r8a7779_init_irq(void);
extern void r8a7779_map_io(void);
Expand Down
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-shmobile/pm-r8a7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
* for more details.
*/
#include <linux/console.h>
#include <linux/suspend.h>
#include <mach/pm-rmobile.h>
#include <mach/common.h>

#ifdef CONFIG_PM
static int r8a7740_pd_a4s_suspend(void)
Expand Down Expand Up @@ -58,3 +60,23 @@ void __init r8a7740_init_pm_domains(void)
}

#endif /* CONFIG_PM */

#ifdef CONFIG_SUSPEND
static int r8a7740_enter_suspend(suspend_state_t suspend_state)
{
cpu_do_idle();
return 0;
}

static void r8a7740_suspend_init(void)
{
shmobile_suspend_ops.enter = r8a7740_enter_suspend;
}
#else
static void r8a7740_suspend_init(void) {}
#endif

void __init r8a7740_pm_init(void)
{
r8a7740_suspend_init();
}

0 comments on commit 141f862

Please sign in to comment.