aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx2')
-rw-r--r--arch/arm/mach-mx2/devices.c20
-rw-r--r--arch/arm/mach-mx2/devices.h1
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
284static 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
297struct 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 */
285static struct mxc_gpio_port imx_gpio_ports[] = { 305static 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;
15extern struct platform_device mxc_nand_device; 15extern struct platform_device mxc_nand_device;
16extern struct platform_device mxc_fb_device; 16extern struct platform_device mxc_fb_device;
17extern struct platform_device mxc_fec_device; 17extern struct platform_device mxc_fec_device;
18extern struct platform_device mxc_pwm_device;