diff options
author | Min-wuk Lee <mlee@nvidia.com> | 2011-08-04 11:35:19 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:04 -0800 |
commit | 3f262a2e2eb5b0ebf6fccba596cceab207d77565 (patch) | |
tree | 5f918bf0eb8c7795ea3f915e57f9a8e7eaceb271 | |
parent | 6c795c895781e5c57125e9329683ffccd7d3e3a7 (diff) |
arm: tegra: enterprise: remove SFIO setting for PWM signal
Remove SFIO setting for PWM signal in enterprise_panel_init
since this makes backlight off during display transition from
bootloader to kernel and android, so black screen is visible
in display transition.
Bug 858120
Original-Change-Id: I95462ce519505d8170b56adfde8c163d91c98478
Reviewed-on: http://git-master/r/44306
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R1b5882cf8302fb822c59f747d2bceb49972c8dbe
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-panel.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c index 9438f865ecb2..867fd7c91494 100644 --- a/arch/arm/mach-tegra/board-enterprise-panel.c +++ b/arch/arm/mach-tegra/board-enterprise-panel.c @@ -65,14 +65,22 @@ static struct regulator *enterprise_hdmi_vddio; static atomic_t sd_brightness = ATOMIC_INIT(255); +/* + * In case which_pwm is TEGRA_PWM_PM0, + * gpio_conf_to_sfio should be TEGRA_GPIO_PW0: set LCD_CS1_N pin to SFIO + * In case which_pwm is TEGRA_PWM_PM1, + * gpio_conf_to_sfio should be TEGRA_GPIO_PW1: set LCD_M1 pin to SFIO + */ static struct platform_tegra_pwm_backlight_data enterprise_disp1_backlight_data = { - .which_dc = 0, - .which_pwm = TEGRA_PWM_PM1, - .max_brightness = 255, - .dft_brightness = 224, - .period = 0x3F, - .clk_div = 1, - .clk_select = 2, + .which_dc = 0, + .which_pwm = TEGRA_PWM_PM1, + .gpio_conf_to_sfio = TEGRA_GPIO_PW1, + .switch_to_sfio = &tegra_gpio_disable, + .max_brightness = 255, + .dft_brightness = 224, + .period = 0x3F, + .clk_div = 1, + .clk_select = 2, }; static struct platform_device enterprise_disp1_backlight_device = { @@ -627,8 +635,6 @@ int __init enterprise_panel_init(void) gpio_direction_output(enterprise_lcd_swp_pl, 0); enterprise_stereo_set_orientation(enterprise_stereo.orientation); - tegra_gpio_disable(TEGRA_GPIO_PW1); - err = platform_add_devices(enterprise_gfx_devices, ARRAY_SIZE(enterprise_gfx_devices)); |