Merged in alinjerpelea/nuttx (pull request #1033)

boards: spresense: Add board initialization for isx012

Add isx012 initialization to the board and include the needed headers

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Alin Jerpelea
2019-09-18 11:42:35 +00:00
committed by Gregory Nutt
parent 2154a02fa1
commit 54ef3efc35
4 changed files with 20 additions and 2 deletions
@@ -41,6 +41,8 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/video/isx012.h>
#include <nuttx/video/video.h>
/****************************************************************************
* Public Types
@@ -47,6 +47,7 @@
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#ifdef CONFIG_RNDIS
@@ -326,6 +327,21 @@ int cxd56_bringup(void)
}
#endif
#ifdef CONFIG_VIDEO_ISX012
ret = board_isx012_initialize(IMAGER_I2C);
if (ret < 0)
{
_err("ERROR: Failed to initialize ISX012 board. %d\n", errno);
}
g_video_devops = isx012_initialize();
if (g_video_devops == NULL)
{
_err("ERROR: Failed to populate ISX012 devops. %d\n", errno);
ret = ERROR;
}
#endif /* CONFIG_VIDEO_ISX012 */
/* In order to prevent Hi-Z from being input to the SD Card controller,
* Initialize SDIO pins to GPIO low output with internal pull-down.
*/