From 2f3bfab22986c766560d04e29af4644ab992d7a2 Mon Sep 17 00:00:00 2001 From: yzq Date: Fri, 18 Jan 2013 09:25:09 +0800 Subject: [PATCH] if PWM_EFFECT_VALUE==0,set PWM_GPIO=GPIO_LOW would cause backlight resume flash --- arch/arm/mach-rk30/board-rk30-sdk.c | 2 +- arch/arm/mach-rk30/board-rk3066b-m701.c | 4 ++-- arch/arm/mach-rk30/board-rk3066b-sdk.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk30-sdk.c b/arch/arm/mach-rk30/board-rk30-sdk.c index 4bb16a844de0..2a93568cf9a5 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk.c +++ b/arch/arm/mach-rk30/board-rk30-sdk.c @@ -282,7 +282,7 @@ static int rk29_backlight_pwm_suspend(void) printk("func %s, line %d: request gpio fail\n", __FUNCTION__, __LINE__); return -1; } - gpio_direction_output(PWM_GPIO, GPIO_LOW); + gpio_direction_input(PWM_GPIO); #ifdef LCD_DISP_ON_PIN gpio_direction_output(BL_EN_PIN, 0); gpio_set_value(BL_EN_PIN, !BL_EN_VALUE); diff --git a/arch/arm/mach-rk30/board-rk3066b-m701.c b/arch/arm/mach-rk30/board-rk3066b-m701.c index fc2bc9c5c1e3..7bd1d1d4ae62 100755 --- a/arch/arm/mach-rk30/board-rk3066b-m701.c +++ b/arch/arm/mach-rk30/board-rk3066b-m701.c @@ -261,7 +261,7 @@ static int rk29_backlight_io_deinit(void) #endif pwm_gpio = iomux_mode_to_gpio(PWM_MODE); gpio_request(pwm_gpio, "bl_pwm"); - gpio_direction_output(pwm_gpio, GPIO_LOW); + gpio_direction_input(pwm_gpio); return ret; } @@ -274,7 +274,7 @@ static int rk29_backlight_pwm_suspend(void) printk("func %s, line %d: request gpio fail\n", __FUNCTION__, __LINE__); return ret; } - gpio_direction_output(pwm_gpio, GPIO_LOW); + gpio_direction_input(pwm_gpio); #ifdef LCD_DISP_ON_PIN gpio_direction_output(BL_EN_PIN, !BL_EN_VALUE); #endif diff --git a/arch/arm/mach-rk30/board-rk3066b-sdk.c b/arch/arm/mach-rk30/board-rk3066b-sdk.c index 3548db5091ae..7e7dcae264b3 100755 --- a/arch/arm/mach-rk30/board-rk3066b-sdk.c +++ b/arch/arm/mach-rk30/board-rk3066b-sdk.c @@ -167,7 +167,7 @@ static int rk29_backlight_io_deinit(void) #endif pwm_gpio = iomux_mode_to_gpio(PWM_MODE); gpio_request(pwm_gpio, "bl_pwm"); - gpio_direction_output(pwm_gpio, GPIO_LOW); + gpio_direction_input(pwm_gpio); return ret; } @@ -180,7 +180,7 @@ static int rk29_backlight_pwm_suspend(void) printk("func %s, line %d: request gpio fail\n", __FUNCTION__, __LINE__); return ret; } - gpio_direction_output(pwm_gpio, GPIO_LOW); + gpio_direction_input(pwm_gpio); #ifdef LCD_DISP_ON_PIN gpio_direction_output(BL_EN_PIN, !BL_EN_VALUE); #endif -- 2.34.1