aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-01-16 09:17:46 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 05:34:11 -0400
commit824b16e66b70f5df61345f5708c149f6886eef30 (patch)
tree176a6755c3f78732370104e40ea5f917ba57a713 /arch/arm
parent166091b1894df3de736f43c649f2e6639f4a31ac (diff)
[ARM] MX2: add pwm device/resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-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;