diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx2/devices.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-mx2/devices.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 684d5d92c2e4..bef418e0e60e 100644 --- a/arch/arm/mach-mx2/devices.c +++ b/arch/arm/mach-mx2/devices.c | |||
@@ -281,6 +281,26 @@ struct platform_device mxc_fec_device = { | |||
281 | }; | 281 | }; |
282 | #endif | 282 | #endif |
283 | 283 | ||
284 | static struct resource mxc_pwm_resources[] = { | ||
285 | [0] = { | ||
286 | .start = PWM_BASE_ADDR, | ||
287 | .end = PWM_BASE_ADDR + 0x0fff, | ||
288 | .flags = IORESOURCE_MEM | ||
289 | }, | ||
290 | [1] = { | ||
291 | .start = MXC_INT_PWM, | ||
292 | .end = MXC_INT_PWM, | ||
293 | .flags = IORESOURCE_IRQ, | ||
294 | } | ||
295 | }; | ||
296 | |||
297 | struct platform_device mxc_pwm_device = { | ||
298 | .name = "mxc_pwm", | ||
299 | .id = 0, | ||
300 | .num_resources = ARRAY_SIZE(mxc_pwm_resources), | ||
301 | .resource = mxc_pwm_resources | ||
302 | }; | ||
303 | |||
284 | /* GPIO port description */ | 304 | /* GPIO port description */ |
285 | static struct mxc_gpio_port imx_gpio_ports[] = { | 305 | static struct mxc_gpio_port imx_gpio_ports[] = { |
286 | [0] = { | 306 | [0] = { |
diff --git a/arch/arm/mach-mx2/devices.h b/arch/arm/mach-mx2/devices.h index d85d5b26c986..94a241419af7 100644 --- a/arch/arm/mach-mx2/devices.h +++ b/arch/arm/mach-mx2/devices.h | |||
@@ -15,3 +15,4 @@ extern struct platform_device mxc_w1_master_device; | |||
15 | extern struct platform_device mxc_nand_device; | 15 | extern struct platform_device mxc_nand_device; |
16 | extern struct platform_device mxc_fb_device; | 16 | extern struct platform_device mxc_fb_device; |
17 | extern struct platform_device mxc_fec_device; | 17 | extern struct platform_device mxc_fec_device; |
18 | extern struct platform_device mxc_pwm_device; | ||