Skip to content

Commit

Permalink
gnss: add mtk receiver type support
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
  • Loading branch information
loysollivier authored and jhovold committed Feb 15, 2019
1 parent 3deb254 commit 625239d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gnss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions include/linux/gnss.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ enum gnss_type {
GNSS_TYPE_NMEA = 0,
GNSS_TYPE_SIRF,
GNSS_TYPE_UBX,
GNSS_TYPE_MTK,

GNSS_TYPE_COUNT
};
Expand Down

0 comments on commit 625239d

Please sign in to comment.