From 887ad41a33a527976e2db996b7d545040a4a8d6a Mon Sep 17 00:00:00 2001 From: Min-wuk Lee Date: Thu, 4 Aug 2011 11:35:19 +0900 Subject: 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 Tested-by: Min-wuk Lee Reviewed-by: Bharat Nihalani --- arch/arm/mach-tegra/board-enterprise-panel.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'arch') 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)); -- cgit v1.2.3