Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp248530imj; Wed, 13 Feb 2019 07:43:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IZMXgrYGyX0MwCKxsXV64F/RN0KzGs27NLV3h1zz3ISnZ67/G8GM+n4qk5PrMcssVRtil+T X-Received: by 2002:a17:902:7c82:: with SMTP id y2mr1114910pll.33.1550072603967; Wed, 13 Feb 2019 07:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550072603; cv=none; d=google.com; s=arc-20160816; b=FGZCAeso/A2v5uij/U6wwSECS5IiB1pfCxEzxD8Q3/Zw4DwlKeky7744RF7HUSVpRW c+IrRl/3+PxZR2wI8RCSZuqcizKgQzM2CDG93xmepqq4wKbuoNKSwRl7yp0Y72f9cvfr zm7TWOeyezkzuFbS3CdWZ3qEMEE8B+p29RyR9YslkevYw/Q52wJyES8cl7NA9HAeNkOS md9En2iDOupCn5h6NC30l7N5bO//EpN7fK8Hg0KVzjtqgEj37FFPySzQuVQ1n7uQQdDC KOD/wmbvfYf3Uimag2YEWtzUnNcJncFHLRiotEyzlv88wjk5cjmNgDgxmNTVCh7sZSeo ynSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Nl2exdiih+VjHG/ozKpTxSpUwLVI9022jYFyfu0Qz18=; b=rASzsljnh/BR9iyXqDSLXlFs09bohJcZ6LeGckP9afY76JrntK+WHfSDCgFb4z5Ew+ hLX3H3ZPXk7sEMJhtKYy7YBxvEZYfCiAe5IxAt1aA4pIEs7S65GXQQTNkkQZ9EYcVPnY m0rzwgive2gUShh04CLs/I+mq3C/yljIZSc87Sv/z4sVf01hU7QaulVIJumu/pR/4sbt MwlrfDJprMyhSueuC7Ms5vmMAwJoE4VDL7lp3HrXW77CO0A/zm9Sm5t4NeGduoXj7R6H FTIH1woRSPBtDpD/g+LNA9SVCoL8LeGqhcxs3oZuzqLjPV3z+xq+A9BqlEt/L27pEdW3 Lc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1p64dTsv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si4769018pfb.166.2019.02.13.07.43.07; Wed, 13 Feb 2019 07:43:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1p64dTsv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392438AbfBMPJs (ORCPT + 99 others); Wed, 13 Feb 2019 10:09:48 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40609 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392420AbfBMPJr (ORCPT ); Wed, 13 Feb 2019 10:09:47 -0500 Received: by mail-ed1-f68.google.com with SMTP id 10so2212426eds.7 for ; Wed, 13 Feb 2019 07:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nl2exdiih+VjHG/ozKpTxSpUwLVI9022jYFyfu0Qz18=; b=1p64dTsvl5SVUsGHL3FLt1+nD8NmQocR3FhCscUxik7dkqyvYZe9zLqoAObZrNGuXM /vdO1YZnjzEwQPUtC8hKELtdhfce4nKivab6kodqWOrgaDLv8Rgj32i7rvz05mCS4+8v fcD0GaTXet39ium9YtMFesNYNBkTcBYr5ZsvReQTVJ3T2S1xB5q+lDXh5pPumzz/ApR2 7hSB3HTEOK9Xld8MWQIDZrMNmphOkRUDvD1VZuvE7gTTDmVn/DwgKjKBZzhVCYUB3auI lHejL2e6gA0siuSse9ZExSf8k/E00GjSz4Hef/Rv2qttqxuL5XPkIaGSX4enPRBfmvqU v9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nl2exdiih+VjHG/ozKpTxSpUwLVI9022jYFyfu0Qz18=; b=g19B/6yLqHLzUjMGpqbna0Se7Aen3tEuJRO8RRim7Q4avFp9OWTYCtxcjGQLUbtK3e HftXawmaM0SPMLJRKnNQpnldLTYHRYhK6+e7L1Us4MXDmqPo6XqIcGRdTWRJJGB3bZua 4sgUIuWsPjs6jekE1tn5BaHOpz9mt+vzrYYxVzv5cMYPfKeiflbHb6DyRmXN9jHIksM3 MnG7RLdfFqCsT9dOhLkE7Bb6s1myWil62/Rf0wjLM8B7ckUtgDuA2rIXXcUh3gpdfc7/ P6Ip/S7nelXRvCDRatzUveX8TXQoDWaCFXhfvARrw6Ja4EPVap4A4o5HyvAVgGUI/T1u WQ/g== X-Gm-Message-State: AHQUAuane3f4uAb+Q7uZAfVIaA1vIrDese9unNixCKJcM8lmarQ+rXgZ wLqdVpi3rO32k5CVS3xy1Q+5yw== X-Received: by 2002:a50:ad57:: with SMTP id z23mr727379edc.223.1550070585131; Wed, 13 Feb 2019 07:09:45 -0800 (PST) Received: from loys-ubuntu-BY1835A49200471.thefacebook.com ([2620:10d:c092:180::1:4505]) by smtp.googlemail.com with ESMTPSA id k26sm1903941ejv.63.2019.02.13.07.09.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Feb 2019 07:09:44 -0800 (PST) From: Loys Ollivier To: devicetree@vger.kernel.org, Johan Hovold Cc: Loys Ollivier , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Kevin Hilman , linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: [PATCH v4 3/4] gnss: add mtk receiver type support Date: Wed, 13 Feb 2019 16:09:28 +0100 Message-Id: <1550070569-18588-4-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550070569-18588-1-git-send-email-lollivier@baylibre.com> References: <1550070569-18588-1-git-send-email-lollivier@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v4: No changes v3: Moved the gnss_type_names string addition to this patch. Edited the commit message to remove the reference to a vendor protocol. v2: Renamed from GTOP to MTK. drivers/gnss/core.c | 1 + include/linux/gnss.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gnss/core.c b/drivers/gnss/core.c index 4291a0dd22aa..320cfca80d5f 100644 --- a/drivers/gnss/core.c +++ b/drivers/gnss/core.c @@ -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) diff --git a/include/linux/gnss.h b/include/linux/gnss.h index 43546977098c..36968a0f33e8 100644 --- a/include/linux/gnss.h +++ b/include/linux/gnss.h @@ -22,6 +22,7 @@ enum gnss_type { GNSS_TYPE_NMEA = 0, GNSS_TYPE_SIRF, GNSS_TYPE_UBX, + GNSS_TYPE_MTK, GNSS_TYPE_COUNT }; -- 2.7.4