diff --git a/boards/arm/cxd56xx/spresense/include/board.h b/boards/arm/cxd56xx/spresense/include/board.h index 76e196faf2..e518e1f8c7 100644 --- a/boards/arm/cxd56xx/spresense/include/board.h +++ b/boards/arm/cxd56xx/spresense/include/board.h @@ -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" diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c index f09ba02af2..f377935c48 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c @@ -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)