boards: cxd56xx: Fix power-off time of video driver

Add a power-off time for image sensor by the device specification.
This commit is contained in:
SPRESENSE 2022-10-31 20:23:41 +09:00 committed by Xiang Xiao
parent 28947517ca
commit 9a8576911f

View File

@ -51,10 +51,11 @@
# error "IMAGER_SLEEP must be defined in board.h !!"
#endif
#define STANDBY_TIME (600*1000) /* TODO: (max100ms/30fps)*/
#define DEVICE_STARTUP_TIME (6*1000) /* ms */
#define SLEEP_CANCEL_TIME (13*1000) /* ms */
#define POWER_CHECK_TIME (1*1000) /* ms */
#define STANDBY_TIME (600 * 1000) /* TODO: (max100ms/30fps)*/
#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++)
{