Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3110321ybb; Mon, 30 Mar 2020 21:16:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcMoLW4+8ZjUMqupQ9M7gb/uUuSKQ6ESg9QZUqs92YOp+wmby48WlCNtkkUasPLpJSTC54 X-Received: by 2002:a9d:4102:: with SMTP id o2mr1784544ote.98.1585628162331; Mon, 30 Mar 2020 21:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585628162; cv=none; d=google.com; s=arc-20160816; b=XwtT9jK/y49giXxl8VPQLzLwf8PtDI4agANFzaM7R6EDY42Ax1zfETYOFjBnvYDL0m AXuMEUm2TY5aNoli21pftE6TJ3GfkclcOPJn5BWRTGH4dhbHAM+ttOj8hB2bi0ATKg3h 3fj30IAuvLM2j6mgjf9/hMg05A/BhpXEq+PlmN1hJvnKSJ4JejZyJ2zvff2HxkwRB88o FEj+Fptv33qRXPMV2gXjLRWVVCM1Rdi0/EMOD3HsZXW6iO2lBPp3TpRCFuLeB5ZwaL/l vbOK52K0zCBcJdILKEY37cG394utaG7iDteSnEwphaSz+0rOLcCzu1eHhrQzDvyJh3Ct S5Bg== 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; bh=C+hTjYvJCA8FMRXS2cF4jXyqIu/v0GDZ18NkyTb/fZI=; b=oApnd4BZ3IhWi9QQh5W5VH6RJdDyUjDqtpo8OCshmHuLb5QE4xK0W0+MdT++q0EQaz E5E3winfcd1qOM9ObwXDPoaDgaSHv4EdGgikQ5Ns4gRLozwAkLICE+jfYGdDt33MPSxp 8Egx6g2Nif5TfOIcZ2EE9LO9WlJDUGlATkL/+TV/IPi/69+laO6ExCOL1B3hFJZd6MmH L7Uto3PJ+KdVAfI1r450kNxo04T1z2TcG8Jzh78krtZe9N/DGlPo4O52SPRFOUfQ3M1J /PRSYJHBkcgVcm9gPRkphljy4YOc6rkVlROOh5ku2WOtC/b70wQfb+PDlBde/OY3fF6o YABA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g124si6845025oia.0.2020.03.30.21.15.49; Mon, 30 Mar 2020 21:16:02 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729928AbgCaEPT (ORCPT + 99 others); Tue, 31 Mar 2020 00:15:19 -0400 Received: from inva021.nxp.com ([92.121.34.21]:46970 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729624AbgCaEPS (ORCPT ); Tue, 31 Mar 2020 00:15:18 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4C5DB2007AF; Tue, 31 Mar 2020 06:15:17 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 16AE62007D5; Tue, 31 Mar 2020 06:15:11 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 27B5F402C8; Tue, 31 Mar 2020 12:14:57 +0800 (SGT) From: Yangbo Lu To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Yangbo Lu , "David S . Miller" , Richard Cochran , Vladimir Oltean , Claudiu Manoil , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexandre Belloni , Microchip Linux Driver Support Subject: [v2, 7/7] net: dsa: felix: enable PTP programmable pin Date: Tue, 31 Mar 2020 12:11:13 +0800 Message-Id: <20200331041113.15873-8-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331041113.15873-1-yangbo.lu@nxp.com> References: <20200331041113.15873-1-yangbo.lu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable PTP programmable pin. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/net/dsa/ocelot/felix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index e1573bc..bfa4c12 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -504,13 +504,15 @@ static struct ptp_clock_info ocelot_ptp_clock_info = { .max_adj = 0x7fffffff, .n_alarm = 0, .n_ext_ts = 0, - .n_per_out = 0, - .n_pins = 0, + .n_per_out = OCELOT_PTP_PINS_NUM, + .n_pins = OCELOT_PTP_PINS_NUM, .pps = 0, .gettime64 = ocelot_ptp_gettime64, .settime64 = ocelot_ptp_settime64, .adjtime = ocelot_ptp_adjtime, .adjfine = ocelot_ptp_adjfine, + .verify = ocelot_ptp_verify, + .enable = ocelot_ptp_enable, }; /* Hardware initialization done here so that we can allocate structures with -- 2.7.4