diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7722.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 5146afc156e0..0e5d204bc792 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -13,6 +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 <asm/clock.h> | 17 | #include <asm/clock.h> |
17 | #include <asm/mmzone.h> | 18 | #include <asm/mmzone.h> |
18 | 19 | ||
@@ -176,6 +177,38 @@ static struct platform_device jpu_device = { | |||
176 | .num_resources = ARRAY_SIZE(jpu_resources), | 177 | .num_resources = ARRAY_SIZE(jpu_resources), |
177 | }; | 178 | }; |
178 | 179 | ||
180 | static struct sh_cmt_config cmt_platform_data = { | ||
181 | .name = "CMT", | ||
182 | .channel_offset = 0x60, | ||
183 | .timer_bit = 5, | ||
184 | .clk = "cmt0", | ||
185 | .clockevent_rating = 125, | ||
186 | .clocksource_rating = 200, | ||
187 | }; | ||
188 | |||
189 | static struct resource cmt_resources[] = { | ||
190 | [0] = { | ||
191 | .name = "CMT", | ||
192 | .start = 0x044a0060, | ||
193 | .end = 0x044a006b, | ||
194 | .flags = IORESOURCE_MEM, | ||
195 | }, | ||
196 | [1] = { | ||
197 | .start = 104, | ||
198 | .flags = IORESOURCE_IRQ, | ||
199 | }, | ||
200 | }; | ||
201 | |||
202 | static struct platform_device cmt_device = { | ||
203 | .name = "sh_cmt", | ||
204 | .id = 0, | ||
205 | .dev = { | ||
206 | .platform_data = &cmt_platform_data, | ||
207 | }, | ||
208 | .resource = cmt_resources, | ||
209 | .num_resources = ARRAY_SIZE(cmt_resources), | ||
210 | }; | ||
211 | |||
179 | static struct plat_sci_port sci_platform_data[] = { | 212 | static struct plat_sci_port sci_platform_data[] = { |
180 | { | 213 | { |
181 | .mapbase = 0xffe00000, | 214 | .mapbase = 0xffe00000, |
@@ -209,6 +242,7 @@ static struct platform_device sci_device = { | |||
209 | }; | 242 | }; |
210 | 243 | ||
211 | static struct platform_device *sh7722_devices[] __initdata = { | 244 | static struct platform_device *sh7722_devices[] __initdata = { |
245 | &cmt_device, | ||
212 | &rtc_device, | 246 | &rtc_device, |
213 | &usbf_device, | 247 | &usbf_device, |
214 | &iic_device, | 248 | &iic_device, |