diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2014-10-29 20:54:13 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-10-29 20:54:13 -0400 |
commit | 4df49d9e1f2592338b5e8d0b5ce9f2485e295cc0 (patch) | |
tree | 8f895dbc4217690a06a278a6322db244d20ada94 /arch/arm/mach-shmobile | |
parent | 0ee56d403549fd97d8acac6b7ba3a17f6999c30a (diff) | |
parent | fd3edcbe9f7bf24b13cadca7616f8e10bbe7e2b3 (diff) |
Merge tag 'renesas-r8a73a4-dt-timers-for-v3.19' into dt-for-v3.19.base
Renesas ARM Based SoC r8a73a4 DT Timers Updates for v3.19
* Initialise CMT1 timer using DT
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/r8a73a4.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a73a4.c | 9 |
3 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 004ed92ee598..3b68370b03a0 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c | |||
@@ -44,7 +44,6 @@ static void __init ape6evm_add_standard_devices(void) | |||
44 | clk_put(parent); | 44 | clk_put(parent); |
45 | clk_put(mp); | 45 | clk_put(mp); |
46 | 46 | ||
47 | r8a73a4_add_dt_devices(); | ||
48 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 47 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
49 | } | 48 | } |
50 | 49 | ||
diff --git a/arch/arm/mach-shmobile/r8a73a4.h b/arch/arm/mach-shmobile/r8a73a4.h index 5fafd6fcedf7..70dcd847a86e 100644 --- a/arch/arm/mach-shmobile/r8a73a4.h +++ b/arch/arm/mach-shmobile/r8a73a4.h | |||
@@ -11,7 +11,6 @@ enum { | |||
11 | }; | 11 | }; |
12 | 12 | ||
13 | void r8a73a4_add_standard_devices(void); | 13 | void r8a73a4_add_standard_devices(void); |
14 | void r8a73a4_add_dt_devices(void); | ||
15 | void r8a73a4_clock_init(void); | 14 | void r8a73a4_clock_init(void); |
16 | void r8a73a4_pinmux_init(void); | 15 | void r8a73a4_pinmux_init(void); |
17 | 16 | ||
diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index b88b88a40a3c..c27682291cbf 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c | |||
@@ -176,18 +176,13 @@ static struct resource cmt1_resources[] = { | |||
176 | DEFINE_RES_IRQ(gic_spi(120)), | 176 | DEFINE_RES_IRQ(gic_spi(120)), |
177 | }; | 177 | }; |
178 | 178 | ||
179 | #define r8a7790_register_cmt(idx) \ | 179 | #define r8a73a4_register_cmt(idx) \ |
180 | platform_device_register_resndata(NULL, "sh-cmt-48-gen2", \ | 180 | platform_device_register_resndata(NULL, "sh-cmt-48-gen2", \ |
181 | idx, cmt##idx##_resources, \ | 181 | idx, cmt##idx##_resources, \ |
182 | ARRAY_SIZE(cmt##idx##_resources), \ | 182 | ARRAY_SIZE(cmt##idx##_resources), \ |
183 | &cmt##idx##_platform_data, \ | 183 | &cmt##idx##_platform_data, \ |
184 | sizeof(struct sh_timer_config)) | 184 | sizeof(struct sh_timer_config)) |
185 | 185 | ||
186 | void __init r8a73a4_add_dt_devices(void) | ||
187 | { | ||
188 | r8a7790_register_cmt(1); | ||
189 | } | ||
190 | |||
191 | /* DMA */ | 186 | /* DMA */ |
192 | static const struct sh_dmae_slave_config dma_slaves[] = { | 187 | static const struct sh_dmae_slave_config dma_slaves[] = { |
193 | { | 188 | { |
@@ -278,7 +273,7 @@ static struct resource dma_resources[] = { | |||
278 | 273 | ||
279 | void __init r8a73a4_add_standard_devices(void) | 274 | void __init r8a73a4_add_standard_devices(void) |
280 | { | 275 | { |
281 | r8a73a4_add_dt_devices(); | 276 | r8a73a4_register_cmt(1); |
282 | r8a73a4_register_scif(0); | 277 | r8a73a4_register_scif(0); |
283 | r8a73a4_register_scif(1); | 278 | r8a73a4_register_scif(1); |
284 | r8a73a4_register_scif(2); | 279 | r8a73a4_register_scif(2); |