aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-07-05 04:26:53 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-07-06 14:40:17 -0400
commita330ce3cdaba5202051edf8ae69482e15fdc9db5 (patch)
tree837108626b9af8e0c5b41d2fdc768251789645d6 /arch/arm
parent802a5639aa7041b27cb865d3be289cd8afe3387b (diff)
ARM: shmobile: r8a7740: add A4LC pm domain support
This patch adds basic A4LC pm domain support. Now, below devices can be controled by PM MERAM, LCDC, VOU, ICBS, SDENC-Link 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')
-rw-r--r--arch/arm/mach-shmobile/include/mach/r8a7740.h1
-rw-r--r--arch/arm/mach-shmobile/pm-r8a7740.c5
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7740.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7740.h b/arch/arm/mach-shmobile/include/mach/r8a7740.h
index a5691cf38475..7143147780df 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7740.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7740.h
@@ -609,6 +609,7 @@ enum {
609#ifdef CONFIG_PM 609#ifdef CONFIG_PM
610extern struct rmobile_pm_domain r8a7740_pd_a4s; 610extern struct rmobile_pm_domain r8a7740_pd_a4s;
611extern struct rmobile_pm_domain r8a7740_pd_a3sp; 611extern struct rmobile_pm_domain r8a7740_pd_a3sp;
612extern struct rmobile_pm_domain r8a7740_pd_a4lc;
612#endif /* CONFIG_PM */ 613#endif /* CONFIG_PM */
613 614
614#endif /* __ASM_R8A7740_H__ */ 615#endif /* __ASM_R8A7740_H__ */
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c
index de7c6214ce63..893504d012a6 100644
--- a/arch/arm/mach-shmobile/pm-r8a7740.c
+++ b/arch/arm/mach-shmobile/pm-r8a7740.c
@@ -46,4 +46,9 @@ struct rmobile_pm_domain r8a7740_pd_a3sp = {
46 .suspend = r8a7740_pd_a3sp_suspend, 46 .suspend = r8a7740_pd_a3sp_suspend,
47}; 47};
48 48
49struct rmobile_pm_domain r8a7740_pd_a4lc = {
50 .genpd.name = "A4LC",
51 .bit_shift = 1,
52};
53
49#endif /* CONFIG_PM */ 54#endif /* CONFIG_PM */
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index 59c794122804..c006d8ddbbe5 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -675,6 +675,7 @@ void __init r8a7740_add_standard_devices(void)
675 /* PM domain */ 675 /* PM domain */
676 rmobile_init_pm_domain(&r8a7740_pd_a4s); 676 rmobile_init_pm_domain(&r8a7740_pd_a4s);
677 rmobile_init_pm_domain(&r8a7740_pd_a3sp); 677 rmobile_init_pm_domain(&r8a7740_pd_a3sp);
678 rmobile_init_pm_domain(&r8a7740_pd_a4lc);
678 679
679 rmobile_pm_add_subdomain(&r8a7740_pd_a4s, &r8a7740_pd_a3sp); 680 rmobile_pm_add_subdomain(&r8a7740_pd_a4s, &r8a7740_pd_a3sp);
680 681