From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Simon Horman <horms@verge.net.au>, Magnus Damm <magnus.damm@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
linux-sh@vger.kernel.org, linux-pm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH v2 11/11] ARM: shmobile: r8a7740: Add A3SM pm domain support
Date: Thu, 25 Sep 2014 18:15:42 +0200 [thread overview]
Message-ID: <1411661742-4767-12-git-send-email-geert+renesas@glider.be> (raw)
In-Reply-To: <1411661742-4767-1-git-send-email-geert+renesas@glider.be>
Add support for the A3SM power domain, and hook it up as a subdomain of
A4S.
This domain contains the System CPU (Cortex-A9) hardware block. Hence
move the special CPU handling from A4S to A3SM.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- Move special CPU domain handling from A4S to A3SM,
- Drop FIXME about not powering down A4S, as this is expected behavior.
---
arch/arm/mach-shmobile/pm-r8a7740.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c
index f3a1c92f5de6177d..41e61f1b5d44f00d 100644
--- a/arch/arm/mach-shmobile/pm-r8a7740.c
+++ b/arch/arm/mach-shmobile/pm-r8a7740.c
@@ -14,10 +14,10 @@
#include "pm-rmobile.h"
#if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM)
-static int r8a7740_pd_a4s_suspend(void)
+static int r8a7740_pd_a3sm_suspend(void)
{
/*
- * The A4S domain contains the CPU core and therefore it should
+ * The A3SM domain contains the CPU core and therefore it should
* only be turned off if the CPU is not in use.
*/
return -EBUSY;
@@ -51,9 +51,7 @@ static struct rmobile_pm_domain r8a7740_pm_domains[] = {
}, {
.genpd.name = "A4S",
.bit_shift = 10,
- .gov = &pm_domain_always_on_gov,
.no_debug = true,
- .suspend = r8a7740_pd_a4s_suspend,
}, {
.genpd.name = "A3SP",
.bit_shift = 11,
@@ -61,6 +59,11 @@ static struct rmobile_pm_domain r8a7740_pm_domains[] = {
.no_debug = true,
.suspend = r8a7740_pd_a3sp_suspend,
}, {
+ .genpd.name = "A3SM",
+ .bit_shift = 12,
+ .gov = &pm_domain_always_on_gov,
+ .suspend = r8a7740_pd_a3sm_suspend,
+ }, {
.genpd.name = "A3SG",
.bit_shift = 13,
}, {
@@ -74,6 +77,7 @@ void __init r8a7740_init_pm_domains(void)
rmobile_init_domains(r8a7740_pm_domains, ARRAY_SIZE(r8a7740_pm_domains));
pm_genpd_add_subdomain_names("A4R", "A3RV");
pm_genpd_add_subdomain_names("A4S", "A3SP");
+ pm_genpd_add_subdomain_names("A4S", "A3SM");
pm_genpd_add_subdomain_names("A4S", "A3SG");
}
#endif /* CONFIG_PM && !CONFIG_ARCH_MULTIPLATFORM */
--
1.9.1
next prev parent reply other threads:[~2014-09-25 16:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 16:15 [PATCH v2 00/11] ARM: shmobile: r8a7740/armadillo800eva legacy PM domain support Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 01/11] ARM: shmobile: r8a7740: Add missing A3SP pm domain devices Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 02/11] ARM: shmobile: r8a7740: Add missing A4S " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 03/11] ARM: shmobile: armadillo800eva legacy: Add missing A3SP " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 04/11] ARM: shmobile: armadillo800eva legacy: Add missing A4S " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 05/11] ARM: shmobile: r8a7740: Add A3RV pm domain support Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 06/11] ARM: shmobile: r8a7740: Add A3SG " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 07/11] ARM: shmobile: r8a7740/armadillo legacy: Add A4MP " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 08/11] ARM: shmobile: r8a7740: Add D4 " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 09/11] ARM: shmobile: r8a7740/armadillo legacy: Add A4R " Geert Uytterhoeven
2014-09-25 16:15 ` [PATCH v2 10/11] ARM: shmobile: r8a7740: Add A4SU " Geert Uytterhoeven
2014-09-25 16:15 ` Geert Uytterhoeven [this message]
2014-09-30 4:20 ` [PATCH v2 00/11] ARM: shmobile: r8a7740/armadillo800eva legacy PM " Simon Horman
2014-09-30 7:16 ` Geert Uytterhoeven
2014-09-30 7:22 ` Magnus Damm
2014-09-30 7:28 ` Geert Uytterhoeven
2014-09-30 7:32 ` Magnus Damm
2014-09-30 7:41 ` Geert Uytterhoeven
2014-09-30 8:05 ` Magnus Damm
2014-09-30 8:13 ` Simon Horman
2014-10-03 15:23 ` Geert Uytterhoeven
2014-10-06 1:42 ` Magnus Damm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411661742-4767-12-git-send-email-geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).