Skip to content

Commit

Permalink
ARM: shmobile: r8a7740: add A4LC pm domain support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Rafael J. Wysocki committed Jul 6, 2012
1 parent 802a563 commit a330ce3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/include/mach/r8a7740.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ enum {
#ifdef CONFIG_PM
extern struct rmobile_pm_domain r8a7740_pd_a4s;
extern struct rmobile_pm_domain r8a7740_pd_a3sp;
extern struct rmobile_pm_domain r8a7740_pd_a4lc;
#endif /* CONFIG_PM */

#endif /* __ASM_R8A7740_H__ */
5 changes: 5 additions & 0 deletions arch/arm/mach-shmobile/pm-r8a7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ struct rmobile_pm_domain r8a7740_pd_a3sp = {
.suspend = r8a7740_pd_a3sp_suspend,
};

struct rmobile_pm_domain r8a7740_pd_a4lc = {
.genpd.name = "A4LC",
.bit_shift = 1,
};

#endif /* CONFIG_PM */
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/setup-r8a7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ void __init r8a7740_add_standard_devices(void)
/* PM domain */
rmobile_init_pm_domain(&r8a7740_pd_a4s);
rmobile_init_pm_domain(&r8a7740_pd_a3sp);
rmobile_init_pm_domain(&r8a7740_pd_a4lc);

rmobile_pm_add_subdomain(&r8a7740_pd_a4s, &r8a7740_pd_a3sp);

Expand Down

0 comments on commit a330ce3

Please sign in to comment.