aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh2a
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
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')
-rw-r--r--arch/sh/kernel/cpu/sh2a/setup-mxg.c8
-rw-r--r--arch/sh/kernel/cpu/sh2a/setup-sh7201.c8
-rw-r--r--arch/sh/kernel/cpu/sh2a/setup-sh7203.c11
-rw-r--r--arch/sh/kernel/cpu/sh2a/setup-sh7206.c13
4 files changed, 19 insertions, 21 deletions
diff --git a/arch/sh/kernel/cpu/sh2a/setup-mxg.c b/arch/sh/kernel/cpu/sh2a/setup-mxg.c
index 870030aa05bc..a452d9649069 100644
--- a/arch/sh/kernel/cpu/sh2a/setup-mxg.c
+++ b/arch/sh/kernel/cpu/sh2a/setup-mxg.c
@@ -11,7 +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_mtu2.h> 14#include <linux/sh_timer.h>
15 15
16enum { 16enum {
17 UNUSED = 0, 17 UNUSED = 0,
@@ -114,7 +114,7 @@ static struct intc_mask_reg mask_registers[] __initdata = {
114static DECLARE_INTC_DESC(intc_desc, "mxg", vectors, groups, 114static DECLARE_INTC_DESC(intc_desc, "mxg", vectors, groups,
115 mask_registers, prio_registers, NULL); 115 mask_registers, prio_registers, NULL);
116 116
117static struct sh_mtu2_config mtu2_0_platform_data = { 117static struct sh_timer_config mtu2_0_platform_data = {
118 .name = "MTU2_0", 118 .name = "MTU2_0",
119 .channel_offset = -0x80, 119 .channel_offset = -0x80,
120 .timer_bit = 0, 120 .timer_bit = 0,
@@ -145,7 +145,7 @@ static struct platform_device mtu2_0_device = {
145 .num_resources = ARRAY_SIZE(mtu2_0_resources), 145 .num_resources = ARRAY_SIZE(mtu2_0_resources),
146}; 146};
147 147
148static struct sh_mtu2_config mtu2_1_platform_data = { 148static struct sh_timer_config mtu2_1_platform_data = {
149 .name = "MTU2_1", 149 .name = "MTU2_1",
150 .channel_offset = -0x100, 150 .channel_offset = -0x100,
151 .timer_bit = 1, 151 .timer_bit = 1,
@@ -176,7 +176,7 @@ static struct platform_device mtu2_1_device = {
176 .num_resources = ARRAY_SIZE(mtu2_1_resources), 176 .num_resources = ARRAY_SIZE(mtu2_1_resources),
177}; 177};
178 178
179static struct sh_mtu2_config mtu2_2_platform_data = { 179static struct sh_timer_config mtu2_2_platform_data = {
180 .name = "MTU2_2", 180 .name = "MTU2_2",
181 .channel_offset = 0x80, 181 .channel_offset = 0x80,
182 .timer_bit = 2, 182 .timer_bit = 2,
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c
index 074aa9062e4b..772358b7685e 100644
--- a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c
+++ b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c
@@ -12,7 +12,7 @@
12#include <linux/init.h> 12#include <linux/init.h>
13#include <linux/serial.h> 13#include <linux/serial.h>
14#include <linux/serial_sci.h> 14#include <linux/serial_sci.h>
15#include <linux/sh_mtu2.h> 15#include <linux/sh_timer.h>
16#include <linux/io.h> 16#include <linux/io.h>
17 17
18enum { 18enum {
@@ -251,7 +251,7 @@ static struct platform_device rtc_device = {
251 .resource = rtc_resources, 251 .resource = rtc_resources,
252}; 252};
253 253
254static struct sh_mtu2_config mtu2_0_platform_data = { 254static struct sh_timer_config mtu2_0_platform_data = {
255 .name = "MTU2_0", 255 .name = "MTU2_0",
256 .channel_offset = -0x80, 256 .channel_offset = -0x80,
257 .timer_bit = 0, 257 .timer_bit = 0,
@@ -282,7 +282,7 @@ static struct platform_device mtu2_0_device = {
282 .num_resources = ARRAY_SIZE(mtu2_0_resources), 282 .num_resources = ARRAY_SIZE(mtu2_0_resources),
283}; 283};
284 284
285static struct sh_mtu2_config mtu2_1_platform_data = { 285static struct sh_timer_config mtu2_1_platform_data = {
286 .name = "MTU2_1", 286 .name = "MTU2_1",
287 .channel_offset = -0x100, 287 .channel_offset = -0x100,
288 .timer_bit = 1, 288 .timer_bit = 1,
@@ -313,7 +313,7 @@ static struct platform_device mtu2_1_device = {
313 .num_resources = ARRAY_SIZE(mtu2_1_resources), 313 .num_resources = ARRAY_SIZE(mtu2_1_resources),
314}; 314};
315 315
316static struct sh_mtu2_config mtu2_2_platform_data = { 316static struct sh_timer_config mtu2_2_platform_data = {
317 .name = "MTU2_2", 317 .name = "MTU2_2",
318 .channel_offset = 0x80, 318 .channel_offset = 0x80,
319 .timer_bit = 2, 319 .timer_bit = 2,
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,
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c
index e700559b6b89..2fc6bff5c5fb 100644
--- a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c
+++ b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c
@@ -12,8 +12,7 @@
12#include <linux/init.h> 12#include <linux/init.h>
13#include <linux/serial.h> 13#include <linux/serial.h>
14#include <linux/serial_sci.h> 14#include <linux/serial_sci.h>
15#include <linux/sh_cmt.h> 15#include <linux/sh_timer.h>
16#include <linux/sh_mtu2.h>
17#include <linux/io.h> 16#include <linux/io.h>
18 17
19enum { 18enum {
@@ -168,7 +167,7 @@ static struct platform_device sci_device = {
168 }, 167 },
169}; 168};
170 169
171static struct sh_cmt_config cmt0_platform_data = { 170static struct sh_timer_config cmt0_platform_data = {
172 .name = "CMT0", 171 .name = "CMT0",
173 .channel_offset = 0x02, 172 .channel_offset = 0x02,
174 .timer_bit = 0, 173 .timer_bit = 0,
@@ -200,7 +199,7 @@ static struct platform_device cmt0_device = {
200 .num_resources = ARRAY_SIZE(cmt0_resources), 199 .num_resources = ARRAY_SIZE(cmt0_resources),
201}; 200};
202 201
203static struct sh_cmt_config cmt1_platform_data = { 202static struct sh_timer_config cmt1_platform_data = {
204 .name = "CMT1", 203 .name = "CMT1",
205 .channel_offset = 0x08, 204 .channel_offset = 0x08,
206 .timer_bit = 1, 205 .timer_bit = 1,
@@ -232,7 +231,7 @@ static struct platform_device cmt1_device = {
232 .num_resources = ARRAY_SIZE(cmt1_resources), 231 .num_resources = ARRAY_SIZE(cmt1_resources),
233}; 232};
234 233
235static struct sh_mtu2_config mtu2_0_platform_data = { 234static struct sh_timer_config mtu2_0_platform_data = {
236 .name = "MTU2_0", 235 .name = "MTU2_0",
237 .channel_offset = -0x80, 236 .channel_offset = -0x80,
238 .timer_bit = 0, 237 .timer_bit = 0,
@@ -263,7 +262,7 @@ static struct platform_device mtu2_0_device = {
263 .num_resources = ARRAY_SIZE(mtu2_0_resources), 262 .num_resources = ARRAY_SIZE(mtu2_0_resources),
264}; 263};
265 264
266static struct sh_mtu2_config mtu2_1_platform_data = { 265static struct sh_timer_config mtu2_1_platform_data = {
267 .name = "MTU2_1", 266 .name = "MTU2_1",
268 .channel_offset = -0x100, 267 .channel_offset = -0x100,
269 .timer_bit = 1, 268 .timer_bit = 1,
@@ -294,7 +293,7 @@ static struct platform_device mtu2_1_device = {
294 .num_resources = ARRAY_SIZE(mtu2_1_resources), 293 .num_resources = ARRAY_SIZE(mtu2_1_resources),
295}; 294};
296 295
297static struct sh_mtu2_config mtu2_2_platform_data = { 296static struct sh_timer_config mtu2_2_platform_data = {
298 .name = "MTU2_2", 297 .name = "MTU2_2",
299 .channel_offset = 0x80, 298 .channel_offset = 0x80,
300 .timer_bit = 2, 299 .timer_bit = 2,