For power saving, the camera is set ON/OFF by 'PWDN' pin.
However, the DQBUF timeout problems have been observed occasionally when
do the resolution switch for the camera. The reason could be that the power
for the camera is set to off then on when do the switch, but the delay time
is not enough for camera to go stable. The patch sets it to an empirical
value and it has passed over 3-day stress test.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
else
gpio_set_value(pwn_gpio, 0);
- msleep(2);
+ msleep(100);
}
static void ov5640_reset(void)