boards/cxd56xx/spresense: Add CXD56_LTE_LATE_INITIALIZE config

This CXD56_LTE_LATE_INITIALIZE enables to initialize alt1250 lte
driver in the application side code.
This commit is contained in:
SPRESENSE 2022-10-31 20:31:06 +09:00 committed by Xiang Xiao
parent 76e411eca0
commit 77528fbeb9
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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)