if PWM_EFFECT_VALUE==0,set PWM_GPIO=GPIO_LOW would cause backlight resume flash
authoryzq <yzq@rock-chips.com>
Fri, 18 Jan 2013 01:25:09 +0000 (09:25 +0800)
committeryzq <yzq@rock-chips.com>
Fri, 18 Jan 2013 01:25:09 +0000 (09:25 +0800)
arch/arm/mach-rk30/board-rk30-sdk.c
arch/arm/mach-rk30/board-rk3066b-m701.c
arch/arm/mach-rk30/board-rk3066b-sdk.c

index 4bb16a844de02dc60b3a7cc743e64076bc14d2c0..2a93568cf9a529cbb73082ffdae4b5f0f21c94e4 100755 (executable)
@@ -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);
index fc2bc9c5c1e3903a4a30e44d51cdff5e25f363dc..7bd1d1d4ae627fbb13345d4700426ed1f5e8f0f4 100755 (executable)
@@ -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
index 3548db5091aed7ea1c00d3795c76925fa4f40192..7e7dcae264b3db1719020607a71df6a14caef5eb 100755 (executable)
@@ -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