From patchwork Wed Feb 13 15:09:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loys Ollivier X-Patchwork-Id: 158231 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp179229jaa; Wed, 13 Feb 2019 07:09:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IYYmEpc/PGeofQG96cS3xXsquT21UMGdQHFRcDBFageMv8q8wcGNFpwwLpkbIRKqtQRvD39 X-Received: by 2002:a17:902:9691:: with SMTP id n17mr1013534plp.9.1550070588709; Wed, 13 Feb 2019 07:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550070588; cv=none; d=google.com; s=arc-20160816; b=QiCSqZHp4Pajfj2d7klcAgqmaN74VkwMYdeyUsf/iJWygXVGR8+d8AeaPr44YDxhRQ kJuyqsyhvWz9LuOjceIWzWodrZbXHRvtN+AGszRShr4/yqs02ueEP1pvTI0gVkYQifSM cQXjoQ2vnHVpYwBbPmvIb/wE7JOPhOLwlmpbQkoHTQtwwz39g6sPHKrCEFcIzV6W4tZw k/Fnim7EGUzXQetIBYZpm2o6x+OezdHSAOXvKudUdNqfhYMhI2iecR2RqsjpLil/4WnI VYXJCAWVb1TdsbtL3+BhD6jqnE0ru9wYuOwmPdwyi+HAACbgYz/EaTt+sxJ2faN6ChU/ 13ZQ== 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=PxbWUh88eZ3HSQPb/JFJMSndTPdvRPOH+uG8wnHQp8kATuJvuM1W2TFWKlI7Rxj3iY vGpd2f2ZqdqQbbvbBYNEit0xq8fFtUZe5qADVwfeTnNcVArduJcOg2koPEr7JgEr5eGF wWEwje1iINHe7MwgW6C+Xtm3ahD5rFrX9Xn7xf0/dUs1hiBMDuuVMZw8h9EnfZwXWEWJ vH2M2wLwZuEHwP6VB3lT7we8IhvBRAvw0QOeN9Byr2vSzclv+nkKxeArPaOvQ79CLtlw 9k3RnTiH+AguFVwbc0VBHznDc3XykQIR//JpWPtRBm1ZXG37pXZd5FVcpvDV1ACz2y8f 5EWA== 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 y11si11497960plk.162.2019.02.13.07.09.48; Wed, 13 Feb 2019 07:09:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392409AbfBMPJr (ORCPT + 7 others); Wed, 13 Feb 2019 10:09:47 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35108 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392418AbfBMPJr (ORCPT ); Wed, 13 Feb 2019 10:09:47 -0500 Received: by mail-ed1-f65.google.com with SMTP id b17so2237191eds.2 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=U4DWRRfWmCggti+BJAvaTlkn/qXKFZ9+sE6Sj3DXh4VI6UAtOM4slIWIinMVUrqpY1 prAFqCpqJeXp1/vN3qKJ1rqVuO2CwHEI9b4zbDPDZYcPy8TfVj5X3Da4uODrTIOUsW+J 48q13Vnm89CGg1BrvyAjL8/bknHE9W2nDeR8p+4rf96MaVCwz+7UbiZLBZHh6O5mMh6k GT+2BOtNvAS93qT2MX7RbrmHgvv+NUwjCx8STcaXA/0TmqepgMyFcUpZId9naZZFqxiC 3EiLICf11sMYoZpDqajMa1b/jyNwLKrdTHb15kAtgoBmrkA6AeGTdCBimXG60/fBrDTW Yz9w== X-Gm-Message-State: AHQUAuYfMeMNKKilUlzL+NBQMaxyv+ahVvSH+NlJIIqxVGrnqIdPWXRC RXYDISlzQ7cvP83PNbv6G4YfzSNiBTfgF2S3 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 2.7.4 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 };