Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3110899ybb; Mon, 30 Mar 2020 21:17:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuX7gRVBfNiADyNMkc1d609LXZBNnia7ltpDJW0CCL3qfmNoxodo6y86jakGpYt3a5Z3WXN X-Received: by 2002:a05:6830:16cc:: with SMTP id l12mr11753339otr.172.1585628226760; Mon, 30 Mar 2020 21:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585628226; cv=none; d=google.com; s=arc-20160816; b=CrVAi3PbrjvlyzpqF/qdJOfpBlSN2Yn0qxpt8r4PK5MRmx2J7UIPwBSKPs60UclU8S h5NK/EqJCQQiint/0iJ7VSYmv9DlU1CkMc/21cr0y2vcLu/PFpS0YqDj/Vu2o+oJNukt Y5aMdo08BgISHyrctiOqz2fUEiod4zZf3VcO5Wv6JDk0bUUUWYl/T9m1MDPI1BIveBTm rE2XuV0/PDXDvpkoQhUb+TwzWLmWcGED9Bisf6HjMRSm6xujf0nASJtcxr3Us9gkFEff BtOFEKtQzAapmvJ9Fb/npCZdu3rXI8DpB1BhHjpjHq+fVaFJDUV+sZ8neWtEhQV2MtCW MugQ== 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=uvUw5ytcr+2bU2pdvN/0MdpgbNHvH1qMNi5WRDY23nY=; b=r6IE4ehYxD6JKll8vWdJa+ptSfRzuL6Hl1Ws2qlFHDH2zmLPkZ4m9BIMHjVVSc/ZL2 vQLDyuaGmFGzNYwLE8w90AUCaQMgb453VsV2IIEX+ziD1lhz1tWg34S2mwAK4PugfdpT QCXXe6Sq/MLiqJg/QmaD9xd9PAP6xxk4/KyNFM+9uPoUvMcylr6/KGV5G2QWV3tUeXLL 0I4n/TvtMad74bom3EzQaeQcGhtY5cIjkRAVqoFc6IT22TO1QaQvUE53sMoss6cgBvJQ +B742/vCpEjLzv2jaG+n4Sf0mEW9DXNX18iEfoTlMxYVwGrS9tmeHDcbYo4IWa6rcsj/ qxsw== 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 g141si6251466oib.45.2020.03.30.21.16.54; Mon, 30 Mar 2020 21:17:06 -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 S1729739AbgCaEPR (ORCPT + 99 others); Tue, 31 Mar 2020 00:15:17 -0400 Received: from inva021.nxp.com ([92.121.34.21]:46948 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgCaEPQ (ORCPT ); Tue, 31 Mar 2020 00:15:16 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 92F822007CC; Tue, 31 Mar 2020 06:15:15 +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 5CC612007D3; Tue, 31 Mar 2020 06:15:09 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E1650402C4; Tue, 31 Mar 2020 12:14:55 +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, 6/7] net: mscc: ocelot: enable PTP programmable pin Date: Tue, 31 Mar 2020 12:11:12 +0800 Message-Id: <20200331041113.15873-7-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/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