Skip to content

Commit

Permalink
boards: cxd56xx: Register cxd5610 gnss driver
Browse files Browse the repository at this point in the history
Register device file for cxd5610 gnss driver.
  • Loading branch information
SPRESENSE committed Oct 31, 2023
1 parent 5ca8f34 commit 675a6b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/cxd56xx/spresense/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 675a6b5

Please sign in to comment.