summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7791.c
diff options
context:
space:
mode:
authorMagnus Damm2013-11-20 08:59:56 +0100
committerSimon Horman2013-12-10 08:52:19 +0100
commit887e8407704bac6c3d22620b7afe65dc4adbbcae (patch)
tree41858a468d842a71d84eb9fff049033e9d5c3d5d /arch/arm/mach-shmobile/setup-r8a7791.c
parentARM: shmobile: Add r8a7790 clocks for thermal devices (diff)
downloadkernel-qcow2-linux-887e8407704bac6c3d22620b7afe65dc4adbbcae.tar.gz
kernel-qcow2-linux-887e8407704bac6c3d22620b7afe65dc4adbbcae.tar.xz
kernel-qcow2-linux-887e8407704bac6c3d22620b7afe65dc4adbbcae.zip
ARM: shmobile: Add r8a7791 thermal platform device
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> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7791.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7791.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c
index 59dd442f48ae..cddca99b434f 100644
--- a/arch/arm/mach-shmobile/setup-r8a7791.c
+++ b/arch/arm/mach-shmobile/setup-r8a7791.c
@@ -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(void)
{
r8a7791_add_dt_devices();
r8a7791_register_irqc(0);
+ r8a7791_register_thermal();
}
void __init r8a7791_init_early(void)