mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
rk2928 lcdc: freee gpio before swith to RGB IO
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user