From 2c9ad3129d732e96bd316537848d5ec0d7926aa3 Mon Sep 17 00:00:00 2001 From: hjc Date: Fri, 25 Oct 2013 18:58:14 +0800 Subject: [PATCH] rk3026 lcdc: fix splash screen when resume --- drivers/video/rockchip/lcdc/rk3188_lcdc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/lcdc/rk3188_lcdc.c b/drivers/video/rockchip/lcdc/rk3188_lcdc.c index 36fbf32e58b6..bfb0187002df 100755 --- a/drivers/video/rockchip/lcdc/rk3188_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk3188_lcdc.c @@ -31,6 +31,7 @@ #include #include #include "rk3188_lcdc.h" +#include @@ -1064,8 +1065,11 @@ static int rk3188_lcdc_early_suspend(struct rk_lcdc_device_driver *dev_drv) spin_unlock(&lcdc_dev->reg_lock); return 0; } - rk3188_lcdc_clk_disable(lcdc_dev); +#if defined(CONFIG_ARCH_RK3026) + iomux_set(GPIO2_B0); + gpio_direction_output(RK30_PIN2_PB0,0); +#endif return 0; } @@ -1076,7 +1080,9 @@ static int rk3188_lcdc_early_resume(struct rk_lcdc_device_driver *dev_drv) int i=0; int __iomem *c; int v; - +#if defined(CONFIG_ARCH_RK3026) + iomux_set(LCDC0_DCLK); +#endif if(dev_drv->screen_ctr_info->io_enable) //power on dev_drv->screen_ctr_info->io_enable(); -- 2.34.1