diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7366.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7366.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index 839ae97a7fd2..93ecf8ed5c6c 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -14,6 +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 <asm/clock.h> | 18 | #include <asm/clock.h> |
18 | 19 | ||
19 | static struct resource iic_resources[] = { | 20 | static struct resource iic_resources[] = { |
@@ -147,6 +148,38 @@ static struct platform_device veu1_device = { | |||
147 | .num_resources = ARRAY_SIZE(veu1_resources), | 148 | .num_resources = ARRAY_SIZE(veu1_resources), |
148 | }; | 149 | }; |
149 | 150 | ||
151 | static struct sh_cmt_config cmt_platform_data = { | ||
152 | .name = "CMT", | ||
153 | .channel_offset = 0x60, | ||
154 | .timer_bit = 5, | ||
155 | .clk = "cmt0", | ||
156 | .clockevent_rating = 125, | ||
157 | .clocksource_rating = 200, | ||
158 | }; | ||
159 | |||
160 | static struct resource cmt_resources[] = { | ||
161 | [0] = { | ||
162 | .name = "CMT", | ||
163 | .start = 0x044a0060, | ||
164 | .end = 0x044a006b, | ||
165 | .flags = IORESOURCE_MEM, | ||
166 | }, | ||
167 | [1] = { | ||
168 | .start = 104, | ||
169 | .flags = IORESOURCE_IRQ, | ||
170 | }, | ||
171 | }; | ||
172 | |||
173 | static struct platform_device cmt_device = { | ||
174 | .name = "sh_cmt", | ||
175 | .id = 0, | ||
176 | .dev = { | ||
177 | .platform_data = &cmt_platform_data, | ||
178 | }, | ||
179 | .resource = cmt_resources, | ||
180 | .num_resources = ARRAY_SIZE(cmt_resources), | ||
181 | }; | ||
182 | |||
150 | static struct plat_sci_port sci_platform_data[] = { | 183 | static struct plat_sci_port sci_platform_data[] = { |
151 | { | 184 | { |
152 | .mapbase = 0xffe00000, | 185 | .mapbase = 0xffe00000, |
@@ -167,6 +200,7 @@ static struct platform_device sci_device = { | |||
167 | }; | 200 | }; |
168 | 201 | ||
169 | static struct platform_device *sh7366_devices[] __initdata = { | 202 | static struct platform_device *sh7366_devices[] __initdata = { |
203 | &cmt_device, | ||
170 | &iic_device, | 204 | &iic_device, |
171 | &sci_device, | 205 | &sci_device, |
172 | &usb_host_device, | 206 | &usb_host_device, |