-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: shmobile: r8a7740: add A4S pm domain support
This patch adds basic A4S pm domain support. Now, below devices can be controled by PM Common-SHwy, Common-HPB, BSC, MFI, MMFROM, HS-SHwy, SYS-HPB, INTCA, DBSC, DDRPHY (Logic), ATAPI, GbEther, AXI-bus Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
- Loading branch information
Kuninori Morimoto
authored and
Rafael J. Wysocki
committed
Jul 6, 2012
1 parent
444c5ed
commit 8459293
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* r8a7740 power management support | ||
* | ||
* Copyright (C) 2012 Renesas Solutions Corp. | ||
* Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <mach/pm-rmobile.h> | ||
|
||
#ifdef CONFIG_PM | ||
static int r8a7740_pd_a4s_suspend(void) | ||
{ | ||
/* | ||
* The A4S domain contains the CPU core and therefore it should | ||
* only be turned off if the CPU is in use. | ||
*/ | ||
return -EBUSY; | ||
} | ||
|
||
struct rmobile_pm_domain r8a7740_pd_a4s = { | ||
.genpd.name = "A4S", | ||
.bit_shift = 10, | ||
.gov = &pm_domain_always_on_gov, | ||
.no_debug = true, | ||
.suspend = r8a7740_pd_a4s_suspend, | ||
}; | ||
#endif /* CONFIG_PM */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters