diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 04:57:17 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-03 04:57:17 -0400 |
commit | 46a12f7426d71cabc08972cf8d3ffdd441d26a3a (patch) | |
tree | 40689b826cc2b24d62bc5be1e08db27593072873 /arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |
parent | d43a41bf8b504a1d9f0b4ce7e17d803f4ef39d84 (diff) |
sh: Consolidate MTU2/CMT/TMU timer platform data.
All of the SH timers use a roughly identical structure for platform data,
which presently is broken out for each block. Consolidate all of these
definitions, as there is no reason for them to be broken out in the first
place.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7722.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 512735c5cc86..624e8e5a605c 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -13,8 +13,7 @@ | |||
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
15 | #include <linux/uio_driver.h> | 15 | #include <linux/uio_driver.h> |
16 | #include <linux/sh_cmt.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <linux/sh_tmu.h> | ||
18 | #include <asm/clock.h> | 17 | #include <asm/clock.h> |
19 | #include <asm/mmzone.h> | 18 | #include <asm/mmzone.h> |
20 | 19 | ||
@@ -178,7 +177,7 @@ static struct platform_device jpu_device = { | |||
178 | .num_resources = ARRAY_SIZE(jpu_resources), | 177 | .num_resources = ARRAY_SIZE(jpu_resources), |
179 | }; | 178 | }; |
180 | 179 | ||
181 | static struct sh_cmt_config cmt_platform_data = { | 180 | static struct sh_timer_config cmt_platform_data = { |
182 | .name = "CMT", | 181 | .name = "CMT", |
183 | .channel_offset = 0x60, | 182 | .channel_offset = 0x60, |
184 | .timer_bit = 5, | 183 | .timer_bit = 5, |
@@ -210,7 +209,7 @@ static struct platform_device cmt_device = { | |||
210 | .num_resources = ARRAY_SIZE(cmt_resources), | 209 | .num_resources = ARRAY_SIZE(cmt_resources), |
211 | }; | 210 | }; |
212 | 211 | ||
213 | static struct sh_tmu_config tmu0_platform_data = { | 212 | static struct sh_timer_config tmu0_platform_data = { |
214 | .name = "TMU0", | 213 | .name = "TMU0", |
215 | .channel_offset = 0x04, | 214 | .channel_offset = 0x04, |
216 | .timer_bit = 0, | 215 | .timer_bit = 0, |
@@ -241,7 +240,7 @@ static struct platform_device tmu0_device = { | |||
241 | .num_resources = ARRAY_SIZE(tmu0_resources), | 240 | .num_resources = ARRAY_SIZE(tmu0_resources), |
242 | }; | 241 | }; |
243 | 242 | ||
244 | static struct sh_tmu_config tmu1_platform_data = { | 243 | static struct sh_timer_config tmu1_platform_data = { |
245 | .name = "TMU1", | 244 | .name = "TMU1", |
246 | .channel_offset = 0x10, | 245 | .channel_offset = 0x10, |
247 | .timer_bit = 1, | 246 | .timer_bit = 1, |
@@ -272,7 +271,7 @@ static struct platform_device tmu1_device = { | |||
272 | .num_resources = ARRAY_SIZE(tmu1_resources), | 271 | .num_resources = ARRAY_SIZE(tmu1_resources), |
273 | }; | 272 | }; |
274 | 273 | ||
275 | static struct sh_tmu_config tmu2_platform_data = { | 274 | static struct sh_timer_config tmu2_platform_data = { |
276 | .name = "TMU2", | 275 | .name = "TMU2", |
277 | .channel_offset = 0x1c, | 276 | .channel_offset = 0x1c, |
278 | .timer_bit = 2, | 277 | .timer_bit = 2, |