mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk3288:keep camera pwen high alwaysly to avoid leakage of lcdc electricity
This commit is contained in:
@@ -290,9 +290,13 @@ static inline int camsys_sysctl_extdev(camsys_extdev_t *extdev, camsys_sysctrl_t
|
||||
gpio_set_value(gpio->io, gpio->active);
|
||||
camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, gpio->active);
|
||||
} else {
|
||||
gpio_direction_output(gpio->io, !gpio->active);
|
||||
gpio_set_value(gpio->io, !gpio->active);
|
||||
camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, !gpio->active);
|
||||
if(CamSys_PwrEn != devctl->ops){
|
||||
gpio_direction_output(gpio->io, !gpio->active);
|
||||
gpio_set_value(gpio->io, !gpio->active);
|
||||
camsys_trace(1,"Sysctl %d success, gpio(%d) set %d",devctl->ops, gpio->io, !gpio->active);
|
||||
}else{
|
||||
camsys_trace(1,"don't poweroff CamSys_PwrEn now \n");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
camsys_err("Sysctl %d failed, because gpio is NULL!",devctl->ops);
|
||||
|
||||
Reference in New Issue
Block a user