From: Geert Uytterhoeven Date: Thu, 23 Oct 2014 11:18:56 +0000 (+0200) Subject: ARM: shmobile: r8a7740: Add A3SG pm domain support X-Git-Tag: v3.19-rc1~169^2~29^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=92e88fd7793401dc7bc1b5cec93761e83b19b947;p=karo-tx-linux.git ARM: shmobile: r8a7740: Add A3SG pm domain support Add support for the A3SG power domain, and hook it up as a subdomain of A4S. This domain contains the SGX540 hardware block, which is currently not used by any driver. Signed-off-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c index 1d916038660d..932c2a621e81 100644 --- a/arch/arm/mach-shmobile/pm-r8a7740.c +++ b/arch/arm/mach-shmobile/pm-r8a7740.c @@ -51,6 +51,9 @@ static struct rmobile_pm_domain r8a7740_pm_domains[] = { .gov = &pm_domain_always_on_gov, .no_debug = true, .suspend = r8a7740_pd_a3sp_suspend, + }, { + .genpd.name = "A3SG", + .bit_shift = 13, }, }; @@ -58,6 +61,7 @@ void __init r8a7740_init_pm_domains(void) { rmobile_init_domains(r8a7740_pm_domains, ARRAY_SIZE(r8a7740_pm_domains)); pm_genpd_add_subdomain_names("A4S", "A3SP"); + pm_genpd_add_subdomain_names("A4S", "A3SG"); } #endif /* CONFIG_PM && !CONFIG_ARCH_MULTIPLATFORM */