2019-11-01 20:45:29 +08:00
|
|
|
# u-blox SARA R4 driver options
|
2019-05-18 01:14:00 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2019 Foundries.io
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-08-07 23:06:00 +08:00
|
|
|
config MODEM_UBLOX_SARA
|
|
|
|
bool "Enable u-blox SARA modem driver"
|
2019-08-07 23:05:00 +08:00
|
|
|
select MODEM_CONTEXT
|
|
|
|
select MODEM_CMD_HANDLER
|
|
|
|
select MODEM_IFACE_UART
|
|
|
|
select MODEM_SOCKET
|
2019-05-18 01:14:00 +08:00
|
|
|
select NET_OFFLOAD
|
2019-08-07 23:05:00 +08:00
|
|
|
select NET_SOCKETS_OFFLOAD
|
2019-05-18 01:14:00 +08:00
|
|
|
imply GPIO
|
|
|
|
help
|
|
|
|
Choose this setting to enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem
|
|
|
|
driver.
|
|
|
|
|
2019-08-07 23:06:00 +08:00
|
|
|
if MODEM_UBLOX_SARA
|
|
|
|
|
|
|
|
choice MODEM_UBLOX_SARA_VARIANT
|
|
|
|
bool "u-blox SARA variant selection"
|
|
|
|
default MODEM_UBLOX_SARA_R4
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_R4
|
|
|
|
bool "u-blox SARA-R4"
|
|
|
|
help
|
|
|
|
Enable support for SARA-R4 modem
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_U2
|
|
|
|
bool "u-blox SARA-U2"
|
|
|
|
help
|
|
|
|
Enable support for SARA-U2 modem
|
|
|
|
|
|
|
|
endchoice
|
2019-05-18 01:14:00 +08:00
|
|
|
|
2019-08-07 23:05:00 +08:00
|
|
|
config MODEM_UBLOX_SARA_R4_NAME
|
|
|
|
string "Driver name"
|
|
|
|
default "MODEM_SARA"
|
|
|
|
|
2019-05-18 01:14:00 +08:00
|
|
|
config MODEM_UBLOX_SARA_R4_RX_STACK_SIZE
|
|
|
|
int "Stack size for the u-blox SARA-R4 modem driver RX thread"
|
|
|
|
default 1028
|
|
|
|
help
|
|
|
|
This stack is used by the u-blox SARA-R4 RX thread.
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_R4_RX_WORKQ_STACK_SIZE
|
|
|
|
int "Stack size for the u-blox SARA-R4 modem driver work queue"
|
|
|
|
default 2048
|
|
|
|
help
|
|
|
|
This stack is used by the work queue to pass off net_pkt data
|
|
|
|
to the rest of the network stack, letting the rx thread continue
|
|
|
|
processing data.
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_R4_APN
|
|
|
|
string "APN for establishing network connection"
|
|
|
|
default "hologram"
|
|
|
|
help
|
|
|
|
This setting is used in the AT+CGDCONT command to set the APN name
|
|
|
|
for the network connection context. This value is specific to
|
|
|
|
the network provider and may need to be changed.
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_R4_MANUAL_MCCMNO
|
|
|
|
string "MCC/MNOfor establishing network connection"
|
|
|
|
help
|
|
|
|
This setting is used in the AT+COPS command to set the MCC/MNO
|
|
|
|
for the network connection context. This value is specific to
|
|
|
|
the network provider and may need to be changed if auto is not
|
|
|
|
selected.
|
|
|
|
|
|
|
|
config MODEM_UBLOX_SARA_R4_INIT_PRIORITY
|
|
|
|
int "u-blox SARA-R4 driver init priority"
|
|
|
|
default 80
|
|
|
|
help
|
|
|
|
u-blox SARA-R4 device driver initialization priority.
|
|
|
|
Do not mess with it unless you know what you are doing.
|
|
|
|
Note that the priority needs to be lower than the net stack
|
|
|
|
so that it can start before the networking sub-system.
|
|
|
|
|
2019-08-07 23:06:00 +08:00
|
|
|
endif # MODEM_UBLOX_SARA
|