diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-01-16 09:17:46 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:34:11 -0400 |
commit | 824b16e66b70f5df61345f5708c149f6886eef30 (patch) | |
tree | 176a6755c3f78732370104e40ea5f917ba57a713 /arch/arm/mach-mx2 | |
parent | 166091b1894df3de736f43c649f2e6639f4a31ac (diff) |
[ARM] MX2: add pwm device/resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2')
-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; | ||