All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 4/7] ARM: shmobile: r8a7740: add A4LC pm domain support
Date: Wed, 04 Jul 2012 03:55:46 +0000	[thread overview]
Message-ID: <87k3yktc1s.wl%kuninori.morimoto.gx@renesas.com> (raw)

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>
---
 arch/arm/mach-shmobile/include/mach/r8a7740.h |    1 +
 arch/arm/mach-shmobile/pm-r8a7740.c           |    5 +++++
 arch/arm/mach-shmobile/setup-r8a7740.c        |    1 +
 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 0bc8266..0f8321b 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7740.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7740.h
@@ -624,6 +624,7 @@ struct r8a7740_pm_domain *to_r8a7740_pd(struct generic_pm_domain *d)
 }
 
 #ifdef CONFIG_PM
+extern struct r8a7740_pm_domain r8a7740_a4lc;
 extern struct r8a7740_pm_domain r8a7740_a4s;
 extern struct r8a7740_pm_domain r8a7740_a3sp;
 
diff --git a/arch/arm/mach-shmobile/pm-r8a7740.c b/arch/arm/mach-shmobile/pm-r8a7740.c
index faa0254..82d330e 100644
--- a/arch/arm/mach-shmobile/pm-r8a7740.c
+++ b/arch/arm/mach-shmobile/pm-r8a7740.c
@@ -173,6 +173,11 @@ static int r8a7740_a4s_suspend(void)
 	return -EBUSY;
 }
 
+struct r8a7740_pm_domain r8a7740_a4lc = {
+	.genpd.name	= "A4LC",
+	.bit_shift	= 1,
+};
+
 struct r8a7740_pm_domain r8a7740_a4s = {
 	.genpd.name	= "A4S",
 	.bit_shift	= 10,
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index 1c95067..b723469 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)
 	/* PM domain */
 	r8a7740_init_pm_domain(&r8a7740_a4s);
 	r8a7740_init_pm_domain(&r8a7740_a3sp);
+	r8a7740_init_pm_domain(&r8a7740_a4lc);
 
 	r8a7740_pm_add_subdomain(&r8a7740_a4s, &r8a7740_a3sp);
 
-- 
1.7.5.4


                 reply	other threads:[~2012-07-04  3:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87k3yktc1s.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=linux-sh@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.