diff options
author | Yuxi Sun <b36102@freescale.com> | 2011-04-13 11:08:02 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 20:08:05 +0800 |
commit | 7648df0ae3eca04d85a66755db39eb81e22e0414 (patch) | |
tree | a660dbec7d4aa6802999ef75b629b07eae637b2a /arch/arm/mach-mx5/board-mx53_smd.c | |
parent | 37ce6d5661b69001ab0f8a48466afd4702e0f515 (diff) |
ENGR00141987-1 PWM: upgrade to 2.6.38 kernel
- Upgrade PWM driver to 2.6.38 kernel
- Add PWM support for MX53 SMD
Signed-off-by: Sun Yuxi <b36102@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx53_smd.c')
-rwxr-xr-x | arch/arm/mach-mx5/board-mx53_smd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_smd.c b/arch/arm/mach-mx5/board-mx53_smd.c index 7fcb79495d05..ef2dd876aea9 100755 --- a/arch/arm/mach-mx5/board-mx53_smd.c +++ b/arch/arm/mach-mx5/board-mx53_smd.c @@ -29,6 +29,8 @@ #include <linux/ahci_platform.h> #include <linux/regulator/consumer.h> +#include <linux/pwm_backlight.h> + #include <mach/common.h> #include <mach/hardware.h> #include <mach/imx-uart.h> @@ -149,6 +151,8 @@ static iomux_v3_cfg_t mx53_smd_pads[] = { MX53_PAD_EIM_DA1__GPIO3_1, /* DCDC5V_BB_EN */ MX53_PAD_KEY_COL4__GPIO4_14, + /* PWM */ + MX53_PAD_GPIO_1__PWM2_PWMO, }; #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) @@ -585,6 +589,13 @@ static struct imx_ssi_platform_data smd_ssi_pdata = { .flags = IMX_SSI_DMA, }; +static struct platform_pwm_backlight_data mxc_pwm_backlight_data = { + .pwm_id = 1, + .max_brightness = 255, + .dft_brightness = 128, + .pwm_period_ns = 50000, +}; + static void __init mx53_smd_board_init(void) { mxc_iomux_v3_setup_multiple_pads(mx53_smd_pads, @@ -603,6 +614,9 @@ static void __init mx53_smd_board_init(void) imx53_add_sdhci_esdhc_imx(2, NULL); imx53_add_ahci_imx(0, &sata_data); + imx53_add_mxc_pwm(1); + imx53_add_mxc_pwm_backlight(0, &mxc_pwm_backlight_data); + mx53_smd_init_usb(); imx53_add_iim(&iim_data); smd_add_device_buttons(); |