boards: cxd56xx: Fix power-off time of video driver
Add a power-off time for image sensor by the device specification.
#define DEVICE_STARTUP_TIME (6 * 1000) /* ms */
#define SLEEP_CANCEL_TIME (13 * 1000) /* ms */
#define POWER_CHECK_TIME (1 * 1000) /* ms */
+#define POWER_OFF_TIME (50 * 1000) /* ms */
#define POWER_CHECK_RETRY (10)
@@ -103,6 +104,10 @@ int board_isx012_power_off(void)
return -ENODEV;
}
+ /* Need to wait for power-off to be reflected */
+
+ nxsig_usleep(POWER_OFF_TIME);
+
ret = -ETIMEDOUT;
for (i = 0; i < POWER_CHECK_RETRY; i++)
{
