diff --git a/boards/arm/cxd56xx/spresense/Kconfig b/boards/arm/cxd56xx/spresense/Kconfig index 46cded7dac..974f77cc16 100644 --- a/boards/arm/cxd56xx/spresense/Kconfig +++ b/boards/arm/cxd56xx/spresense/Kconfig @@ -756,6 +756,13 @@ config CXD56_LTE_SPI5_DMAC endif # CXD56_LTE_SPI5 +config CXD56_LTE_LATE_INITIALIZE + bool "Alt1250 driver late initialize" + default n + ---help--- + LTE driver can be initialized on an application code after system booted up + by enabling this configuration switch. + endif # CXD56_LTE config CXD56_BINARY diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c index fa01f4860c..3b6012eb94 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_bringup.c @@ -463,6 +463,14 @@ int cxd56_bringup(void) } #endif +#if defined(CONFIG_MODEM_ALT1250) && !defined(CONFIG_CXD56_LTE_LATE_INITIALIZE) + ret = board_alt1250_initialize("/dev/alt1250"); + if (ret < 0) + { + _err("ERROR: Failed to initialize ALT1250.\n"); + } +#endif + #ifdef CONFIG_CXD56_GNSS ret = cxd56_gnssinitialize("/dev/gps"); if (ret < 0)