summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm-r8a7740.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-07-05 01:26:31 -0700
committerRafael J. Wysocki <rjw@sisk.pl>2012-07-06 20:40:17 +0200
commit802a5639aa7041b27cb865d3be289cd8afe3387b (patch)
tree07758785d8c128290babef0de2b47fd475210a59 /arch/arm/mach-shmobile/pm-r8a7740.c
parent8459293c27bcd13aabacb7ee8097f6818f2ceedb (diff)
downloadop-kernel-dev-802a5639aa7041b27cb865d3be289cd8afe3387b.zip
op-kernel-dev-802a5639aa7041b27cb865d3be289cd8afe3387b.tar.gz
ARM: shmobile: r8a7740: add A3SP pm domain support
This patch adds basic A3SP pm domain support. Now, below devices can be controled by PM DMAC1/2/3, IPMMU, DDM, FLCTL, SYS-HPB, BBIF1, MSIOF1/2, SCIFA,SCIFB, IIC1, IrDA, USBH, USBDMAC, SDHI0/1/2, TPU, DREQPAK (Sys), MMCIF, RSPI, SIM, USBF 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>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-r8a7740.c')
-rw-r--r--arch/arm/mach-shmobile/pm-r8a7740.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c
index d2fe815..de7c621 100644
--- a/arch/arm/mach-shmobile/pm-r8a7740.c
+++ b/arch/arm/mach-shmobile/pm-r8a7740.c
@@ -8,6 +8,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
+#include <linux/console.h>
#include <mach/pm-rmobile.h>
#ifdef CONFIG_PM
@@ -27,4 +28,22 @@ struct rmobile_pm_domain r8a7740_pd_a4s = {
.no_debug = true,
.suspend = r8a7740_pd_a4s_suspend,
};
+
+static int r8a7740_pd_a3sp_suspend(void)
+{
+ /*
+ * Serial consoles make use of SCIF hardware located in A3SP,
+ * keep such power domain on if "no_console_suspend" is set.
+ */
+ return console_suspend_enabled ? 0 : -EBUSY;
+}
+
+struct rmobile_pm_domain r8a7740_pd_a3sp = {
+ .genpd.name = "A3SP",
+ .bit_shift = 11,
+ .gov = &pm_domain_always_on_gov,
+ .no_debug = true,
+ .suspend = r8a7740_pd_a3sp_suspend,
+};
+
#endif /* CONFIG_PM */
OpenPOWER on IntegriCloud