aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a
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/sh4a
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/sh4a')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7343.c4
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7366.c4
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7722.c11
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7723.c4
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7724.c4
5 files changed, 13 insertions, 14 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
index cb5b4db1ca2..f327b7eaf47 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
@@ -12,7 +12,7 @@
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/uio_driver.h> 14#include <linux/uio_driver.h>
15#include <linux/sh_cmt.h> 15#include <linux/sh_timer.h>
16#include <asm/clock.h> 16#include <asm/clock.h>
17 17
18static struct resource iic0_resources[] = { 18static struct resource iic0_resources[] = {
@@ -141,7 +141,7 @@ static struct platform_device jpu_device = {
141 .num_resources = ARRAY_SIZE(jpu_resources), 141 .num_resources = ARRAY_SIZE(jpu_resources),
142}; 142};
143 143
144static struct sh_cmt_config cmt_platform_data = { 144static struct sh_timer_config cmt_platform_data = {
145 .name = "CMT", 145 .name = "CMT",
146 .channel_offset = 0x60, 146 .channel_offset = 0x60,
147 .timer_bit = 5, 147 .timer_bit = 5,
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c
index 2a771f48e9e..7361ea989b9 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c
@@ -14,7 +14,7 @@
14#include <linux/serial.h> 14#include <linux/serial.h>
15#include <linux/serial_sci.h> 15#include <linux/serial_sci.h>
16#include <linux/uio_driver.h> 16#include <linux/uio_driver.h>
17#include <linux/sh_cmt.h> 17#include <linux/sh_timer.h>
18#include <asm/clock.h> 18#include <asm/clock.h>
19 19
20static struct resource iic_resources[] = { 20static struct resource iic_resources[] = {
@@ -148,7 +148,7 @@ static struct platform_device veu1_device = {
148 .num_resources = ARRAY_SIZE(veu1_resources), 148 .num_resources = ARRAY_SIZE(veu1_resources),
149}; 149};
150 150
151static struct sh_cmt_config cmt_platform_data = { 151static struct sh_timer_config cmt_platform_data = {
152 .name = "CMT", 152 .name = "CMT",
153 .channel_offset = 0x60, 153 .channel_offset = 0x60,
154 .timer_bit = 5, 154 .timer_bit = 5,
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
index 512735c5cc8..624e8e5a605 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
181static struct sh_cmt_config cmt_platform_data = { 180static 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
213static struct sh_tmu_config tmu0_platform_data = { 212static 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
244static struct sh_tmu_config tmu1_platform_data = { 243static 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
275static struct sh_tmu_config tmu2_platform_data = { 274static 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,
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c
index dbb44949ed1..fb9b5427a06 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c
@@ -13,7 +13,7 @@
13#include <linux/mm.h> 13#include <linux/mm.h>
14#include <linux/serial_sci.h> 14#include <linux/serial_sci.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 <asm/clock.h> 17#include <asm/clock.h>
18#include <asm/mmzone.h> 18#include <asm/mmzone.h>
19 19
@@ -101,7 +101,7 @@ static struct platform_device veu1_device = {
101 .num_resources = ARRAY_SIZE(veu1_resources), 101 .num_resources = ARRAY_SIZE(veu1_resources),
102}; 102};
103 103
104static struct sh_cmt_config cmt_platform_data = { 104static struct sh_timer_config cmt_platform_data = {
105 .name = "CMT", 105 .name = "CMT",
106 .channel_offset = 0x60, 106 .channel_offset = 0x60,
107 .timer_bit = 5, 107 .timer_bit = 5,
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
index 8429396acb5..e074951b88b 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
@@ -18,7 +18,7 @@
18#include <linux/mm.h> 18#include <linux/mm.h>
19#include <linux/serial_sci.h> 19#include <linux/serial_sci.h>
20#include <linux/uio_driver.h> 20#include <linux/uio_driver.h>
21#include <linux/sh_cmt.h> 21#include <linux/sh_timer.h>
22#include <linux/io.h> 22#include <linux/io.h>
23#include <asm/clock.h> 23#include <asm/clock.h>
24#include <asm/mmzone.h> 24#include <asm/mmzone.h>
@@ -230,7 +230,7 @@ static struct platform_device veu1_device = {
230 .num_resources = ARRAY_SIZE(veu1_resources), 230 .num_resources = ARRAY_SIZE(veu1_resources),
231}; 231};
232 232
233static struct sh_cmt_config cmt_platform_data = { 233static struct sh_timer_config cmt_platform_data = {
234 .name = "CMT", 234 .name = "CMT",
235 .channel_offset = 0x60, 235 .channel_offset = 0x60,
236 .timer_bit = 5, 236 .timer_bit = 5,