diff options
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7790.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index b7e78b9a7fdf..bc40a44de127 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c | |||
@@ -148,6 +148,17 @@ static struct resource irqc0_resources[] __initdata = { | |||
148 | &irqc##idx##_data, \ | 148 | &irqc##idx##_data, \ |
149 | sizeof(struct renesas_irqc_config)) | 149 | sizeof(struct renesas_irqc_config)) |
150 | 150 | ||
151 | static struct resource thermal_resources[] __initdata = { | ||
152 | DEFINE_RES_MEM(0xe61f0000, 0x14), | ||
153 | DEFINE_RES_MEM(0xe61f0100, 0x38), | ||
154 | DEFINE_RES_IRQ(gic_spi(69)), | ||
155 | }; | ||
156 | |||
157 | #define r8a7790_register_thermal() \ | ||
158 | platform_device_register_simple("rcar_thermal", -1, \ | ||
159 | thermal_resources, \ | ||
160 | ARRAY_SIZE(thermal_resources)) | ||
161 | |||
151 | void __init r8a7790_add_standard_devices(void) | 162 | void __init r8a7790_add_standard_devices(void) |
152 | { | 163 | { |
153 | r8a7790_register_scif(SCIFA0); | 164 | r8a7790_register_scif(SCIFA0); |
@@ -161,6 +172,7 @@ void __init r8a7790_add_standard_devices(void) | |||
161 | r8a7790_register_scif(HSCIF0); | 172 | r8a7790_register_scif(HSCIF0); |
162 | r8a7790_register_scif(HSCIF1); | 173 | r8a7790_register_scif(HSCIF1); |
163 | r8a7790_register_irqc(0); | 174 | r8a7790_register_irqc(0); |
175 | r8a7790_register_thermal(); | ||
164 | } | 176 | } |
165 | 177 | ||
166 | void __init r8a7790_timer_init(void) | 178 | void __init r8a7790_timer_init(void) |