Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3664876imu; Mon, 28 Jan 2019 08:40:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7gTNMofBxlf++3frmABYCHQtkEYg5FZmoAR/g90xeTq1dZXKvTkth6ULQjZossow8ZI2EE X-Received: by 2002:a17:902:b090:: with SMTP id p16mr22527120plr.190.1548693641257; Mon, 28 Jan 2019 08:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548693641; cv=none; d=google.com; s=arc-20160816; b=fHmQOKoF1R1nOfKynprrJ0NOLVAoqMYKfY/bqCvwEgIz4s+0PNnFPx9WDpppAFLx1z FszJ8l1v80rrGZngZMgpCzjyjHirmwN8qdUo5oazZLRiwBSEq0BngHggGez8kv4gzjVI 2FeWyxgsNiFiFoA1GDR7Gae7cPHjj9T8fjtPysX9czpUZwAA8B+pRsjf/U0lluTj41/q tJeOdIavTSc7OKv82Iol8pjSudBDXi116bM84jWujpkL7JXNDyTuBJZAR0Q/5htOcnp9 yMq/bISLEwDARnokAa4aseYCkm8ZdL1s2JtAWry5klYIxbnDWUlIM0oUHtJpgaMLAf/t Zr3Q== 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=fyBQQHTr8PUOvMNC5TSDB366cWfD8A0+KHCn5LVVNH8=; b=B8YUoyRC0SbghGqrZA5NM9D+VEjSii5ffBWXuXniA9jIBhTmUy01rM915mYvyVV4qt BOIEceOui4L2ggaHrdurWs67SF9EelLotkZGqeAytgyupuVavNTLdRNDlxATVHBeYNIA sx7j70GzRqL2jqzOy4lpVUhIB3mJ8B7AA+Z2kRuQyK8LVPMlrH2fGbPR8883pZlnz5nr bb7WXkxt4WwwfV+poly6eF9vJRqldLfb5+3/e++QyMUonUcvqb5UV+giQu4TAb3juSXa l1ytO3KZLVU2E8USOS2YlYWTU8+qMW7u0yOSqYkS9DDxmfnp8kcoRMxUrp6W+duxlwnR eu0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=HYqf2z5e; 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 i1si32430529pgi.480.2019.01.28.08.40.25; Mon, 28 Jan 2019 08:40:41 -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=HYqf2z5e; 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 S2390595AbfA1QiN (ORCPT + 99 others); Mon, 28 Jan 2019 11:38:13 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41795 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390283AbfA1QiK (ORCPT ); Mon, 28 Jan 2019 11:38:10 -0500 Received: by mail-wr1-f65.google.com with SMTP id x10so18766004wrs.8 for ; Mon, 28 Jan 2019 08:38:09 -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=fyBQQHTr8PUOvMNC5TSDB366cWfD8A0+KHCn5LVVNH8=; b=HYqf2z5eD3+QLpuQsIa8Phc08x0KnTYkWPWdqhent4WHaKgV4AbHrdtuSEnDNKkNea scxM5Kd1hkFVFFI5IHpusyuIjntVpb2gnbFpH79sCOqq5mBgtfdPApxIgeCI0uoboDz7 CmTfvBuda3ITtikhX8QxoAqgbZAQgO/hztL1G88Gyxh6/tf2cqnOxQ6OKQGiCFlpfKq8 7Ld2pI88cmWYyySZhmb1YoxRZF0HfbJauuKsWpbg9ssVMXAv3mh09+s0BgXqfyLxXxxH ghdjIouftGV65Hgm1OLT7E7tq70USf2NZLEJlM8dJ8EREsqhBC09RG5Na/qrCNvsNWyJ +BTA== 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=fyBQQHTr8PUOvMNC5TSDB366cWfD8A0+KHCn5LVVNH8=; b=RCC75bN5t6XrkemvmDTQahGmme++L6OXw5UcjulFN4VIrN1E8NDqUNc4qaFuRUiFc8 6jyH5zHedLMKQ9CkFGj1SeXOmEmTnfTY3rOOLFalWZs4dJprNjgFWmhYWnZXnqnROpdD m60o4f5Y+jkCM6kfNJfxHQ23qMzDQWVAQ3tLLbBkmCDNA7dPsm4Zy2d1mAv17CJgsgJn G+B0OmJA1JlYx9WI/uwhKMkB0GP+h+r5xpnEoZfxeZ256Y7Tla9QgB7BYoQ6AvH6hPX9 rbV3MuSj3uwV4skm6lFeps2MGQjfVpMrHyhrESbXnlyi5Ff8qa5wWvw3dz8gSfIZZL+M Aguw== X-Gm-Message-State: AJcUukfudIyMGRNbAjFkCd1XKTnbXRYvHDTp5i85GrtybXqhPfdx4X/c t5KLTAHAZluMdautM44j8tqwLQ== X-Received: by 2002:adf:eec9:: with SMTP id a9mr22139027wrp.242.1548693489225; Mon, 28 Jan 2019 08:38:09 -0800 (PST) Received: from loys-ubuntu-BY1835A49200471.thefacebook.com ([2620:10d:c092:180::1:d40b]) by smtp.googlemail.com with ESMTPSA id s3sm52388982wmj.23.2019.01.28.08.38.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 08:38:08 -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 v3 3/4] gnss: add mtk receiver type support Date: Mon, 28 Jan 2019 17:38:00 +0100 Message-Id: <1548693481-1162-4-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548693481-1162-1-git-send-email-lollivier@baylibre.com> References: <1548693481-1162-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 --- 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