boards: cxd56xx: Register cxd5610 gnss driver

Register device file for cxd5610 gnss driver.
This commit is contained in:
SPRESENSE 2023-10-28 20:19:35 +09:00 committed by Alin Jerpelea
parent 0ee2bb51b8
commit 2f1b4a49ce
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,7 @@
#include "cxd56_rpr0521rs.h"
#include "cxd56_scd41.h"
#include "cxd56_sensors.h"
#include "cxd56_gnss_addon.h"
#ifdef CONFIG_VIDEO_ISX012
# include "cxd56_isx012.h"

View File

@ -493,6 +493,14 @@ int cxd56_bringup(void)
}
#endif
#if defined(CONFIG_CXD56_GNSS_ADDON) && !defined(CONFIG_CXD56_GNSS_ADDON_LATE_INITIALIZE)
ret = board_gnss_addon_initialize("/dev/gps2", 0);
if (ret < 0)
{
_err("ERROR: Failed to initialize gnss addon.\n");
}
#endif
#ifdef CONFIG_CXD56_GEOFENCE
ret = cxd56_geofenceinitialize("/dev/geofence");
if (ret < 0)