diff options
author | Min-wuk Lee <mlee@nvidia.com> | 2011-08-04 11:35:19 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-05 17:56:30 -0700 |
commit | 887ad41a33a527976e2db996b7d545040a4a8d6a (patch) | |
tree | 2272b14548dd47041a303c251c9e928ef8ee562d /arch | |
parent | a12e308863acaf9021e57b457f39e9254f43b827 (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
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>
Diffstat (limited to 'arch')
-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 6fd8f26321fe..8ad2ffe66d2a 100644 --- a/arch/arm/mach-tegra/board-enterprise-panel.c +++ b/arch/arm/mach-tegra/board-enterprise-panel.c @@ -66,14 +66,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 = { @@ -674,8 +682,6 @@ int __init enterprise_panel_init(void) register_early_suspend(&enterprise_panel_early_suspender); #endif - tegra_gpio_disable(TEGRA_GPIO_PW1); - err = platform_add_devices(enterprise_gfx_devices, ARRAY_SIZE(enterprise_gfx_devices)); |