diff options
author | Mahesh Mahadevan <r9aadq@freescale.com> | 2011-10-27 06:52:46 -0500 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:16:59 +0800 |
commit | ce8a0a5fb4b286fd6b56d3b6119864229773d210 (patch) | |
tree | 2ead39e021432a5f1366f91b07115d9a5f714778 /arch/arm/mach-mx6/devices-imx6q.h | |
parent | 7b86b6739ebce68a15f6a2b774030b8eb8937381 (diff) |
ENGR00160930-2 Add support for MX6 PWM
Add support for the PWM module under MX6. Sabre-lite uses
this for controlling the LVDS backlight
Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/devices-imx6q.h')
-rw-r--r-- | arch/arm/mach-mx6/devices-imx6q.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/devices-imx6q.h b/arch/arm/mach-mx6/devices-imx6q.h index 90d5c69d44f8..9673f9e52b76 100644 --- a/arch/arm/mach-mx6/devices-imx6q.h +++ b/arch/arm/mach-mx6/devices-imx6q.h @@ -155,6 +155,14 @@ extern const struct imx_viv_gpu_data imx6_gc2000_data __initconst; extern const struct imx_viv_gpu_data imx6_gc320_data __initconst; extern const struct imx_viv_gpu_data imx6_gc355_data __initconst; +extern const struct imx_mxc_pwm_data imx6q_mxc_pwm_data[] __initconst; +#define imx6q_add_mxc_pwm(id) \ + imx_add_mxc_pwm(&imx6q_mxc_pwm_data[id]) + +#define imx6q_add_mxc_pwm_backlight(id, pdata) \ + platform_device_register_resndata(NULL, "pwm-backlight",\ + id, NULL, 0, pdata, sizeof(*pdata)); + extern const struct imx_spdif_data imx6q_imx_spdif_data __initconst; #define imx6q_add_spdif(pdata) imx_add_spdif(&imx6q_imx_spdif_data, pdata) |