linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>,
	horms@verge.net.au, linux-sh@vger.kernel.org
Subject: [PATCH 04/05] ARM: shmobile: Add r8a7791 thermal platform device
Date: Wed, 20 Nov 2013 07:59:56 +0000	[thread overview]
Message-ID: <20131120075956.23557.51924.sendpatchset@w520> (raw)
In-Reply-To: <20131120075921.23557.23231.sendpatchset@w520>

From: Magnus Damm <damm@opensource.se>

Add a thermal platform device for the legacy case
on the r8a7791 SoC. This keeps the r8a7791 in sync
with the r8a7790 sister device.

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

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

--- 0001/arch/arm/mach-shmobile/setup-r8a7791.c
+++ work/arch/arm/mach-shmobile/setup-r8a7791.c	2013-11-20 15:54:42.000000000 +0900
@@ -189,6 +189,17 @@ static struct resource irqc0_resources[]
 					  &irqc##idx##_data,		\
 					  sizeof(struct renesas_irqc_config))
 
+static const struct resource thermal_resources[] __initconst = {
+	DEFINE_RES_MEM(0xe61f0000, 0x14),
+	DEFINE_RES_MEM(0xe61f0100, 0x38),
+	DEFINE_RES_IRQ(gic_spi(69)),
+};
+
+#define r8a7791_register_thermal()					\
+	platform_device_register_simple("rcar_thermal", -1,		\
+					thermal_resources,		\
+					ARRAY_SIZE(thermal_resources))
+
 void __init r8a7791_add_dt_devices(void)
 {
 	r8a7791_register_scif(SCIFA0);
@@ -213,6 +224,7 @@ void __init r8a7791_add_standard_devices
 {
 	r8a7791_add_dt_devices();
 	r8a7791_register_irqc(0);
+	r8a7791_register_thermal();
 }
 
 void __init r8a7791_init_early(void)

  parent reply	other threads:[~2013-11-20  7:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20  7:59 [PATCH 00/05] ARM: shmobile: r8a7790 and r8a7791 thermal update Magnus Damm
2013-11-20  7:59 ` [PATCH 01/05] ARM: shmobile: Add r8a7790 thermal device node to DTS Magnus Damm
2013-11-21  4:07   ` Simon Horman
2013-11-20  7:59 ` [PATCH 02/05] ARM: shmobile: Add r8a7790 clocks for thermal devices Magnus Damm
2013-11-21  4:09   ` Simon Horman
2013-11-20  7:59 ` [PATCH 05/05] ARM: shmobile: Add r8a7791 " Magnus Damm
2013-11-21  4:12   ` Simon Horman
2013-11-20  7:59 ` [PATCH 03/05] ARM: shmobile: Add r8a7791 thermal device node to DTS Magnus Damm
2013-11-21  4:10   ` Simon Horman
2013-11-20  7:59 ` Magnus Damm [this message]
2013-11-21  4:12   ` [PATCH 04/05] ARM: shmobile: Add r8a7791 thermal platform device Simon Horman
2013-11-20  8:18 ` [PATCH 00/05] ARM: shmobile: r8a7790 and r8a7791 thermal update Kuninori Morimoto

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=20131120075956.23557.51924.sendpatchset@w520 \
    --to=magnus.damm@gmail.com \
    --cc=horms@verge.net.au \
    --cc=linux-kernel@vger.kernel.org \
    --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).