aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh2a/setup-sh7203.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-03 04:57:17 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-03 04:57:17 -0400
commit46a12f7426d71cabc08972cf8d3ffdd441d26a3a (patch)
tree40689b826cc2b24d62bc5be1e08db27593072873 /arch/sh/kernel/cpu/sh2a/setup-sh7203.c
parentd43a41bf8b504a1d9f0b4ce7e17d803f4ef39d84 (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/sh2a/setup-sh7203.c')
-rw-r--r--arch/sh/kernel/cpu/sh2a/setup-sh7203.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c
index 3448164b5734..d7493418ba60 100644
--- a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c
+++ b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c
@@ -11,8 +11,7 @@
11#include <linux/init.h> 11#include <linux/init.h>
12#include <linux/serial.h> 12#include <linux/serial.h>
13#include <linux/serial_sci.h> 13#include <linux/serial_sci.h>
14#include <linux/sh_cmt.h> 14#include <linux/sh_timer.h>
15#include <linux/sh_mtu2.h>
16#include <linux/io.h> 15#include <linux/io.h>
17 16
18enum { 17enum {
@@ -208,7 +207,7 @@ static struct platform_device sci_device = {
208 }, 207 },
209}; 208};
210 209
211static struct sh_cmt_config cmt0_platform_data = { 210static struct sh_timer_config cmt0_platform_data = {
212 .name = "CMT0", 211 .name = "CMT0",
213 .channel_offset = 0x02, 212 .channel_offset = 0x02,
214 .timer_bit = 0, 213 .timer_bit = 0,
@@ -240,7 +239,7 @@ static struct platform_device cmt0_device = {
240 .num_resources = ARRAY_SIZE(cmt0_resources), 239 .num_resources = ARRAY_SIZE(cmt0_resources),
241}; 240};
242 241
243static struct sh_cmt_config cmt1_platform_data = { 242static struct sh_timer_config cmt1_platform_data = {
244 .name = "CMT1", 243 .name = "CMT1",
245 .channel_offset = 0x08, 244 .channel_offset = 0x08,
246 .timer_bit = 1, 245 .timer_bit = 1,
@@ -272,7 +271,7 @@ static struct platform_device cmt1_device = {
272 .num_resources = ARRAY_SIZE(cmt1_resources), 271 .num_resources = ARRAY_SIZE(cmt1_resources),
273}; 272};
274 273
275static struct sh_mtu2_config mtu2_0_platform_data = { 274static struct sh_timer_config mtu2_0_platform_data = {
276 .name = "MTU2_0", 275 .name = "MTU2_0",
277 .channel_offset = -0x80, 276 .channel_offset = -0x80,
278 .timer_bit = 0, 277 .timer_bit = 0,
@@ -303,7 +302,7 @@ static struct platform_device mtu2_0_device = {
303 .num_resources = ARRAY_SIZE(mtu2_0_resources), 302 .num_resources = ARRAY_SIZE(mtu2_0_resources),
304}; 303};
305 304
306static struct sh_mtu2_config mtu2_1_platform_data = { 305static struct sh_timer_config mtu2_1_platform_data = {
307 .name = "MTU2_1", 306 .name = "MTU2_1",
308 .channel_offset = -0x100, 307 .channel_offset = -0x100,
309 .timer_bit = 1, 308 .timer_bit = 1,