rk3066b m701: fix white screen when reboot loader
authoryzq <yzq@rock-chips.com>
Thu, 27 Sep 2012 01:52:47 +0000 (09:52 +0800)
committeryzq <yzq@rock-chips.com>
Thu, 27 Sep 2012 01:58:24 +0000 (09:58 +0800)
arch/arm/mach-rk30/board-rk3066b-m701.c

index fb3b4ffc4371c527f405351679c97d627a16b301..17cd332f1f5420db97e0066df6298cc718e17398 100755 (executable)
@@ -246,9 +246,13 @@ static int rk29_backlight_io_deinit(void)
 {
        int ret = 0;
 #ifdef  LCD_DISP_ON_PIN
+       gpio_direction_output(BL_EN_PIN, 0);
+       gpio_set_value(BL_EN_PIN, !BL_EN_VALUE);
        gpio_free(BL_EN_PIN);
 #endif
        rk30_mux_api_set(PWM_MUX_NAME, PWM_MUX_MODE_GPIO);
+       gpio_request(PWM_GPIO, NULL);
+       gpio_direction_output(PWM_GPIO, GPIO_LOW);
        return ret;
 }