Skip to content

Commit d2efbbd

Browse files
jhovoldgregkh
authored andcommitted
gnss: add driver for sirfstar-based receivers
Add driver for serial-connected SiRFstar-based GNSS receivers. These devices typically boot into hibernate mode from which they can be woken using a pulse on the ON_OFF input pin. Once active, a pulse on the same ON_OFF pin is used to put the device back into hibernate mode. The current state can be determined by sampling the WAKEUP output. Hardware configurations where WAKEUP has been connected to ON_OFF (and where an initial WAKEUP pulse during boot is sufficient to have the device boot into active mode) are also supported. In this case, device power is managed using the main-supply regulator only. Note that configurations where WAKEUP is left not connected, so that the device power state can only indirectly be determined using the I/O interface, is currently not supported. It should be fairly straight-forward to extend the current implementation with such support however (and this this is the main reason for not using the generic serial implementation for this driver). Note that timepulse-support is left unimplemented. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 176193b commit d2efbbd

3 files changed

Lines changed: 422 additions & 0 deletions

File tree

‎drivers/gnss/Kconfig‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ if GNSS
1515
config GNSS_SERIAL
1616
tristate
1717

18+
config GNSS_SIRF_SERIAL
19+
tristate "SiRFstar GNSS receiver support"
20+
depends on SERIAL_DEV_BUS
21+
---help---
22+
Say Y here if you have a SiRFstar-based GNSS receiver which uses a
23+
serial interface.
24+
25+
To compile this driver as a module, choose M here: the module will
26+
be called gnss-sirf.
27+
28+
If unsure, say N.
29+
1830
config GNSS_UBX_SERIAL
1931
tristate "u-blox GNSS receiver support"
2032
depends on SERIAL_DEV_BUS

‎drivers/gnss/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ gnss-y := core.o
99
obj-$(CONFIG_GNSS_SERIAL) += gnss-serial.o
1010
gnss-serial-y := serial.o
1111

12+
obj-$(CONFIG_GNSS_SIRF_SERIAL) += gnss-sirf.o
13+
gnss-sirf-y := sirf.o
14+
1215
obj-$(CONFIG_GNSS_UBX_SERIAL) += gnss-ubx.o
1316
gnss-ubx-y := ubx.o

0 commit comments

Comments
 (0)