diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2010-12-01 11:11:46 -0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-12 14:50:09 +0100 |
commit | 076762aa52de48688f6e1b6999fe58d736479f37 (patch) | |
tree | d460dbcd2fe450c49b367aa6e1ac9059240a564f /arch/arm/mach-mx5/devices-imx51.h | |
parent | dbc4245bb520580fc1b01105727fde7d7cbe452d (diff) | |
download | op-kernel-dev-076762aa52de48688f6e1b6999fe58d736479f37.zip op-kernel-dev-076762aa52de48688f6e1b6999fe58d736479f37.tar.gz |
ARM: mx5: dynamically allocate pwm devices
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/devices-imx51.h')
-rw-r--r-- | arch/arm/mach-mx5/devices-imx51.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/devices-imx51.h b/arch/arm/mach-mx5/devices-imx51.h index 6302e46..39183ee 100644 --- a/arch/arm/mach-mx5/devices-imx51.h +++ b/arch/arm/mach-mx5/devices-imx51.h @@ -47,3 +47,7 @@ extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst; extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[] __initconst; #define imx51_add_imx2_wdt(id, pdata) \ imx_add_imx2_wdt(&imx51_imx2_wdt_data[id]) + +extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[] __initconst; +#define imx51_add_mxc_pwm(id, pdata) \ + imx_add_mxc_pwm(&imx51_mxc_pwm_data[id], pdata) |