rk2928 lcdc: freee gpio before swith to RGB IO
authoryxj <yxj@rock-chips.com>
Sat, 3 Nov 2012 08:07:38 +0000 (16:07 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 3 Nov 2012 08:14:34 +0000 (16:14 +0800)
drivers/video/rockchip/lcdc/rk2928_lcdc.c

index 9a016300e367f3c62178f93df0f7587ad5d60c04..fe8cc8d9c1ba49f56f33ce78dec8f1c6c95e0129 100644 (file)
@@ -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)
                {