boards: cxd56xx: Add CXD56_CAMERA_LATE_INITIALIZE config

This CXD56_CAMERA_LATE_INITIALIZE enables to initialize camera device
drivers in the application side code.
This commit is contained in:
SPRESENSE 2022-10-31 20:27:06 +09:00 committed by Xiang Xiao
parent 9a8576911f
commit 76e411eca0
2 changed files with 13 additions and 3 deletions

View File

@ -765,4 +765,12 @@ config CXD56_BINARY
Create nuttx.spk binary format used on spresense board and boards
based on cxd56xx arch.
config CXD56_CAMERA_LATE_INITIALIZE
bool "Camera drivers late initialization"
default n
depends on CXD56_CISIF
---help---
The camera drivers can be initialized on an application code after system booted up
by enabling this configuration switch.
endif

View File

@ -378,13 +378,14 @@ int cxd56_bringup(void)
}
#endif
#ifndef CONFIG_CXD56_CAMERA_LATE_INITIALIZE
#ifdef CONFIG_VIDEO_ISX019
ret = isx019_initialize();
if (ret < 0)
{
_err("ERROR: Failed to initialize ISX019 board. %d\n", errno);
}
#endif
#endif /* CONFIG_VIDEO_ISX019 */
#ifdef CONFIG_VIDEO_ISX012
ret = isx012_initialize();
@ -392,7 +393,7 @@ int cxd56_bringup(void)
{
_err("ERROR: Failed to initialize ISX012 board. %d\n", errno);
}
#endif
#endif /* CONFIG_VIDEO_ISX012 */
#ifdef CONFIG_CXD56_CISIF
ret = cxd56_cisif_initialize();
@ -401,7 +402,8 @@ int cxd56_bringup(void)
_err("ERROR: Failed to initialize CISIF. %d\n", errno);
ret = ERROR;
}
#endif
#endif /* CONFIG_CXD56_CISIF */
#endif /* CONFIG_CXD56_CAMERA_LATE_INITIALIZE */
#if defined(CONFIG_CXD56_SDIO)
/* In order to prevent Hi-Z from being input to the SD Card controller,