From: yxj Date: Sat, 3 Nov 2012 08:07:38 +0000 (+0800) Subject: rk2928 lcdc: freee gpio before swith to RGB IO X-Git-Tag: firefly_0821_release~8283 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c4098060bf9948c1c8162c372e7badf3cdbab4e;p=firefly-linux-kernel-4.4.55.git rk2928 lcdc: freee gpio before swith to RGB IO --- diff --git a/drivers/video/rockchip/lcdc/rk2928_lcdc.c b/drivers/video/rockchip/lcdc/rk2928_lcdc.c index 9a016300e367..fe8cc8d9c1ba 100644 --- a/drivers/video/rockchip/lcdc/rk2928_lcdc.c +++ b/drivers/video/rockchip/lcdc/rk2928_lcdc.c @@ -52,6 +52,14 @@ static int rk2928_lcdc_iomux(rk_screen *screen,int mode) int i=0; if((screen->type == SCREEN_RGB)&&(mode)) //iomux for RGB screen { + for(i=0;i<8;i++) + { + gpio_free(RK2928_PIN2_PB0 + i); + } + for(i=0;i<4;i++) + { + gpio_free(RK2928_PIN2_PC0 + i); + } if(screen->lcdc_id == 0) {