Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275627
b: refs/heads/master
c: 88995e8
h: refs/heads/master
i:
  275625: 0de107b
  275623: 888e64d
v: v3
  • Loading branch information
Rafael J. Wysocki committed Nov 17, 2011
1 parent aff702e commit da02caa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b258cc8ac229aa7d5dcb7cc34cb35d9124498ac
refs/heads/master: 88995e809f8a8115f30db24696c9137aad93d570
19 changes: 14 additions & 5 deletions trunk/arch/arm/mach-shmobile/pm-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,23 @@ struct sh7372_pm_domain sh7372_a3sp = {
.no_debug = true,
};

static void sh7372_a3sp_init(void)
{
/* serial consoles make use of SCIF hardware located in A3SP,
* keep such power domain on if "no_console_suspend" is set.
*/
sh7372_a3sp.stay_on = !console_suspend_enabled;
}

struct sh7372_pm_domain sh7372_a3sg = {
.bit_shift = 13,
};

#endif /* CONFIG_PM */
#else /* !CONFIG_PM */

static inline void sh7372_a3sp_init(void) {}

#endif /* !CONFIG_PM */

#if defined(CONFIG_SUSPEND) || defined(CONFIG_CPU_IDLE)
static int sh7372_do_idle_core_standby(unsigned long unused)
Expand Down Expand Up @@ -474,10 +486,7 @@ void __init sh7372_pm_init(void)
/* do not convert A3SM, A3SP, A3SG, A4R power down into A4S */
__raw_writel(0, PDNSEL);

/* serial consoles make use of SCIF hardware located in A3SP,
* keep such power domain on if "no_console_suspend" is set.
*/
sh7372_a3sp.stay_on = !console_suspend_enabled;
sh7372_a3sp_init();

sh7372_suspend_init();
sh7372_cpuidle_init();
Expand Down

0 comments on commit da02caa

Please sign in to comment.