29cb7002e5
This driver enables the "takeover" of a serdev bus device by the GNSS subsystem. It can be used to test the GNSS subsystem without needing to write a specific hardware backend. The new module supports the following parameters: gnss_cmdline.serdev=driver/port/serdev gnss_cmdline.type=<protocol number> An example which allows GNSS to wrap a platform serial8250 port and advertise NMEA-0183 data is: gnss_cmdline.serdev=serial8250/serial0/serial0-0 ^ ^ ^ driver port serdev gnss_cmdline.type=0 ^ GNSS_TYPE_NMEA Bug: 146517987 Change-Id: I421386ee4f2ba8f1f0832d9c56a067a600892d3c Signed-off-by: Alistair Delva <adelva@google.com>
58 lines
1.4 KiB
Text
58 lines
1.4 KiB
Text
#
|
|
# GNSS receiver configuration
|
|
#
|
|
|
|
menuconfig GNSS
|
|
tristate "GNSS receiver support"
|
|
---help---
|
|
Say Y here if you have a GNSS receiver (e.g. a GPS receiver).
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
be called gnss.
|
|
|
|
if GNSS
|
|
|
|
config GNSS_SERIAL
|
|
tristate
|
|
|
|
config GNSS_SIRF_SERIAL
|
|
tristate "SiRFstar GNSS receiver support"
|
|
depends on SERIAL_DEV_BUS
|
|
---help---
|
|
Say Y here if you have a SiRFstar-based GNSS receiver which uses a
|
|
serial interface.
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
be called gnss-sirf.
|
|
|
|
If unsure, say N.
|
|
|
|
config GNSS_UBX_SERIAL
|
|
tristate "u-blox GNSS receiver support"
|
|
depends on SERIAL_DEV_BUS
|
|
select GNSS_SERIAL
|
|
---help---
|
|
Say Y here if you have a u-blox GNSS receiver which uses a serial
|
|
interface.
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
be called gnss-ubx.
|
|
|
|
If unsure, say N.
|
|
|
|
config GNSS_CMDLINE_SERIAL
|
|
tristate "Command line test driver for GNSS"
|
|
depends on SERIAL_DEV_BUS
|
|
select GNSS_SERIAL
|
|
---help---
|
|
Say Y here if you want to test the GNSS subsystem but do not have a
|
|
way to communicate a binding through firmware such as DT or ACPI.
|
|
The correct serdev device and protocol type must be specified on
|
|
the module command line.
|
|
|
|
To compile this driver as a module, choose M here: the module will
|
|
be called gnss-cmdline.
|
|
|
|
If unsure, say N.
|
|
|
|
endif # GNSS
|