From 2f1b4a49ceae9b5ba47dc53351898e905d8912c4 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Sat, 28 Oct 2023 20:19:35 +0900 Subject: [PATCH] boards: cxd56xx: Register cxd5610 gnss driver Register device file for cxd5610 gnss driver. --- boards/arm/cxd56xx/spresense/include/board.h | 1 + boards/arm/cxd56xx/spresense/src/cxd56_bringup.c | 8 ++++++++ 2 files changed, 9 insertions(+) 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)