Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3175938ybz; Sun, 19 Apr 2020 19:53:08 -0700 (PDT) X-Google-Smtp-Source: APiQypI7SHTqh4Ka413UtgIcSvvm2+qvStz72oGwAYTiRgwugiSxFatyIwqS7EdVP+aB773Gfp60 X-Received: by 2002:a17:906:fcaf:: with SMTP id qw15mr13929271ejb.236.1587351188642; Sun, 19 Apr 2020 19:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587351188; cv=none; d=google.com; s=arc-20160816; b=0OxM3QmB95qH7nNBUIIDNqgrn2SEHKb1Ingp36/75mI8gB3Z9u9kVo4VdO3p47Vp8U q6zhNdHDTVRZwf4WQCbDP86tq6LZr73ohJFwUJHC+IYS+H8iIKNFGENeSwoEwFxh/XBq fBZVneQkqbyBX3vJZsjJy2fcJyv7EjqJsuU6DsVqAzb6LFjegryiTqUcNs665zjs4lBZ ZnbQOj/1SHW0TRoMj79K7ZnYsuH8JCVUVquL3w5YvG9yTbK1Q58bj8zcMjwbo2yBmVeh O0BllJkdum7VQdVZpU7IZgqW2KDz26ZXl8PVFQ8fYfj/FBEqqawsCW0wXltAqJFfT5O9 grNg== 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=NtyWyqJDNFe23P6w8IdR8T5vw/GwmZEZ4pdl3qokLeA=; b=A1Kf7wHIUATdPDZyDArzPMYWAcJqx+DmUE1JD+5byOI1Klw3b1dgBTJr5wALQGUWwJ zWi7oJo23TRNqs3tY6IqNOBp9FwpaPS1bypM+EDz8r2nmpa+2PSMNKEE8otD5qBpt1NW YT4BtiKCxww1OXPvDCS+Fh2uX/xKUMkA3MFhR0G8Fq3VpjTOD/HicuiUtFi8qoCVMHlm Tnw2578RNWSj1l6+RsmG9XuWaWs8RYlK8m2eXQIR4Pvpf1DWU9VHYQV8mmKF7xDoJ0Xd l2RjJU1bbMNJuD1zvJbYQGgodacZiFLoEpXTzuV3DAv2COq6jW1o7D3drnKuGHN8Be5L oF8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b13si7701590edt.342.2020.04.19.19.52.44; Sun, 19 Apr 2020 19:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726379AbgDTCvZ (ORCPT + 99 others); Sun, 19 Apr 2020 22:51:25 -0400 Received: from inva021.nxp.com ([92.121.34.21]:50400 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgDTCvW (ORCPT ); Sun, 19 Apr 2020 22:51:22 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8A6F620069E; Mon, 20 Apr 2020 04:51:19 +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 9EE7F2005D5; Mon, 20 Apr 2020 04:51:14 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 77225402E8; Mon, 20 Apr 2020 10:51:07 +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: [v3, 6/7] net: mscc: ocelot: enable PTP programmable pin Date: Mon, 20 Apr 2020 10:46:50 +0800 Message-Id: <20200420024651.47353-7-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420024651.47353-1-yangbo.lu@nxp.com> References: <20200420024651.47353-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. Changes for v3: - None. --- drivers/net/ethernet/mscc/ocelot_board.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot_board.c b/drivers/net/ethernet/mscc/ocelot_board.c index ee016f7..67a8d61 100644 --- a/drivers/net/ethernet/mscc/ocelot_board.c +++ b/drivers/net/ethernet/mscc/ocelot_board.c @@ -372,13 +372,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, }; static int mscc_ocelot_probe(struct platform_device *pdev) -- 2.7.4