linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 07/08] ARM: shmobile: Hook up r8a7790 PM code for Multiplatform
Date: Thu, 05 Jun 2014 05:16:01 +0000	[thread overview]
Message-ID: <20140605051601.18075.60382.sendpatchset@w520> (raw)

From: Magnus Damm <damm+renesas@opensource.se>

Extend the r8a7790 multiplatform code to call
r8a7790_pm_init() at ->init_machine() timing
to allow setup of APMU Suspend-to-RAM in the
case when SMP is disabled.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7790.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- 0001/arch/arm/mach-shmobile/setup-r8a7790.c
+++ work/arch/arm/mach-shmobile/setup-r8a7790.c	2014-06-05 12:53:53.000000000 +0900
@@ -281,6 +281,7 @@ static struct resource cmt0_resources[]
 
 void __init r8a7790_add_dt_devices(void)
 {
+	r8a7790_pm_init();
 	r8a7790_register_cmt(0);
 }
 
@@ -308,6 +309,11 @@ void __init r8a7790_add_standard_devices
 }
 
 #ifdef CONFIG_USE_OF
+static void __init r8a7790_init_machine(void)
+{
+	r8a7790_pm_init();
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+}
 
 static const char * const r8a7790_boards_compat_dt[] __initconst = {
 	"renesas,r8a7790",
@@ -318,6 +324,7 @@ DT_MACHINE_START(R8A7790_DT, "Generic R8
 	.smp		= smp_ops(r8a7790_smp_ops),
 	.init_early	= shmobile_init_delay,
 	.init_time	= rcar_gen2_timer_init,
+	.init_machine	= r8a7790_init_machine,
 	.dt_compat	= r8a7790_boards_compat_dt,
 MACHINE_END
 #endif /* CONFIG_USE_OF */

                 reply	other threads:[~2014-06-05  5:16 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=20140605051601.18075.60382.sendpatchset@w520 \
    --to=magnus.damm@gmail.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 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).