projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a7341
)
rk2928 lcdc: freee gpio before swith to RGB IO
author
yxj
<yxj@rock-chips.com>
Sat, 3 Nov 2012 08:07:38 +0000
(16:07 +0800)
committer
yxj
<yxj@rock-chips.com>
Sat, 3 Nov 2012 08:14:34 +0000
(16:14 +0800)
drivers/video/rockchip/lcdc/rk2928_lcdc.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/lcdc/rk2928_lcdc.c
b/drivers/video/rockchip/lcdc/rk2928_lcdc.c
index 9a016300e367f3c62178f93df0f7587ad5d60c04..fe8cc8d9c1ba49f56f33ce78dec8f1c6c95e0129 100644
(file)
--- 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)
{