gnss: add mtk receiver type support
authorLoys Ollivier <lollivier@baylibre.com>
Wed, 13 Feb 2019 15:09:28 +0000 (16:09 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 15 Feb 2019 15:54:38 +0000 (16:54 +0100)
Add an MTK (Mediatek) type to the "GNSS_TYPE" attribute.

Note that MTK receivers support a subset of NMEA 0183 with vendor
extensions.

Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/core.c
include/linux/gnss.h

index 4291a0d..320cfca 100644 (file)
@@ -334,6 +334,7 @@ static const char * const gnss_type_names[GNSS_TYPE_COUNT] = {
        [GNSS_TYPE_NMEA]        = "NMEA",
        [GNSS_TYPE_SIRF]        = "SiRF",
        [GNSS_TYPE_UBX]         = "UBX",
+       [GNSS_TYPE_MTK]         = "MTK",
 };
 
 static const char *gnss_type_name(struct gnss_device *gdev)
index 4354697..36968a0 100644 (file)
@@ -22,6 +22,7 @@ enum gnss_type {
        GNSS_TYPE_NMEA = 0,
        GNSS_TYPE_SIRF,
        GNSS_TYPE_UBX,
+       GNSS_TYPE_MTK,
 
        GNSS_TYPE_COUNT
 };