From: lw@rock-chips.com Date: Sat, 25 Aug 2012 07:01:33 +0000 (+0800) Subject: phonepad:add pre_div parameter for backlight X-Git-Tag: firefly_0821_release~8839 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c4d1c682d604e5f01c2f5653d0cee2b6dab077ae;p=firefly-linux-kernel-4.4.55.git phonepad:add pre_div parameter for backlight --- diff --git a/arch/arm/mach-rk30/board-rk30-phonepad.c b/arch/arm/mach-rk30/board-rk30-phonepad.c index 634e14b82d86..d86c6475bda7 100755 --- a/arch/arm/mach-rk30/board-rk30-phonepad.c +++ b/arch/arm/mach-rk30/board-rk30-phonepad.c @@ -780,6 +780,7 @@ static struct rk29_bl_info rk29_bl_info = { .io_deinit = rk29_backlight_io_deinit, .pwm_suspend = rk29_backlight_pwm_suspend, .pwm_resume = rk29_backlight_pwm_resume, + .pre_div = 20000, }; static struct platform_device rk29_device_backlight = { @@ -1224,9 +1225,9 @@ static int rk_fb_io_disable(void) } static int rk_fb_io_enable(void) { + gpio_set_value(LCD_EN_PIN, LCD_EN_VALUE); gpio_set_value(LCD_CS_PIN, LCD_CS_VALUE); - gpio_set_value(LCD_EN_PIN, LCD_EN_VALUE); - msleep(30); + msleep(150); //wait for power stable return 0; }