diff options
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7791.c | 12 |
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[] = { | |||
189 | &irqc##idx##_data, \ | 189 | &irqc##idx##_data, \ |
190 | sizeof(struct renesas_irqc_config)) | 190 | sizeof(struct renesas_irqc_config)) |
191 | 191 | ||
192 | static const struct resource thermal_resources[] __initconst = { | ||
193 | DEFINE_RES_MEM(0xe61f0000, 0x14), | ||
194 | DEFINE_RES_MEM(0xe61f0100, 0x38), | ||
195 | DEFINE_RES_IRQ(gic_spi(69)), | ||
196 | }; | ||
197 | |||
198 | #define r8a7791_register_thermal() \ | ||
199 | platform_device_register_simple("rcar_thermal", -1, \ | ||
200 | thermal_resources, \ | ||
201 | ARRAY_SIZE(thermal_resources)) | ||
202 | |||
192 | void __init r8a7791_add_dt_devices(void) | 203 | void __init r8a7791_add_dt_devices(void) |
193 | { | 204 | { |
194 | r8a7791_register_scif(SCIFA0); | 205 | r8a7791_register_scif(SCIFA0); |
@@ -213,6 +224,7 @@ void __init r8a7791_add_standard_devices(void) | |||
213 | { | 224 | { |
214 | r8a7791_add_dt_devices(); | 225 | r8a7791_add_dt_devices(); |
215 | r8a7791_register_irqc(0); | 226 | r8a7791_register_irqc(0); |
227 | r8a7791_register_thermal(); | ||
216 | } | 228 | } |
217 | 229 | ||
218 | void __init r8a7791_init_early(void) | 230 | void __init r8a7791_init_early(void) |