Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3110327ybb; Mon, 30 Mar 2020 21:16:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsyHGKI1kqdvlN28gvdcta3dpUcd01UpvTeUkeHWriwGVGNLBhueeANTSEN6yLvjsY4OJ0h X-Received: by 2002:a9d:5a09:: with SMTP id v9mr10953420oth.214.1585628162686; 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=0/R4qJzHED64At3jJB8a7bF2NlLtVyh8hnYfGuG60rZ0eQNHCNyEIEx6/KK03YHzZK BOkiTQ/86erWccWxaH75cnXXdt3S1LhusfVU2bWdrOIew3zeChuBqN/DCv/c7cDwidV6 iqVPDAAkTHdRnhNlXuap05ZlR11KqQbItbtGeYdY6oqqLec7tZ0Bh5WS2YHjmQInL1X1 jQiMl+mB0KQovSUKdaL1igqVbH56FY42kJGU+JsJMJiaINFHt2N7bljI+p/WrizEp1br RUtJ/N7WJPegsrCNKZ2wuCwZnLrflGxwMk2l0C7RPVum6Yza88bm6MbjVgSTD8s+hhi9 W+gQ== 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=YBfQ14y8554Uu4GS+WDaJ4OHE0cXabsoT2Oj/nqVMNA=; b=iHjLY0xcXDYpwje6Cz89iJE1D90JTOIQh8RxKNgcqSLIT3DeIBlBqH8fJ5P6UWsLUn LbmENN1qiDCWqGhQeHOtM88PLPw9bbMWjWmZoXgrGtkVT7ARGnFaQFhfQ93GZhmUoNuH ZsXkGJ1EEg288JZZgCUESenQwh/4psDAJz9yYwh9gkgdvgf6gm0LJDIq1YAWrgNG1bFy DCPz+b4UpF708KUQBpv8JOBx4x27IQFEeDVNUz7bhS7NUVCnCxzXxAXRsMbpFUt5YUyd k5YSihb3YsZTQLSHz42vY9A5e5HmeKDPjDbx4ujzCxBCNLzGx6KndH6sBB7lCJLIreLF Gn6g== 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 d13si6478405oij.140.2020.03.30.21.15.42; 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 S1727614AbgCaEPN (ORCPT + 99 others); Tue, 31 Mar 2020 00:15:13 -0400 Received: from inva021.nxp.com ([92.121.34.21]:46708 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgCaEPJ (ORCPT ); Tue, 31 Mar 2020 00:15:09 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 803FC2007C5; Tue, 31 Mar 2020 06:15:07 +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 4B5232007BD; Tue, 31 Mar 2020 06:15:01 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7F540402BB; Tue, 31 Mar 2020 12:14:53 +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, 4/7] net: mscc: ocelot: add wave programming registers definitions Date: Tue, 31 Mar 2020 12:11:10 +0800 Message-Id: <20200331041113.15873-5-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 Add wave programming registers definitions for Ocelot platforms. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- drivers/net/dsa/ocelot/felix_vsc9959.c | 2 ++ drivers/net/ethernet/mscc/ocelot_regs.c | 2 ++ include/soc/mscc/ocelot.h | 2 ++ include/soc/mscc/ocelot_ptp.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index b4078f3..4fe707e 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -313,6 +313,8 @@ static const u32 vsc9959_ptp_regmap[] = { REG(PTP_PIN_TOD_SEC_MSB, 0x000004), REG(PTP_PIN_TOD_SEC_LSB, 0x000008), REG(PTP_PIN_TOD_NSEC, 0x00000c), + REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014), + REG(PTP_PIN_WF_LOW_PERIOD, 0x000018), REG(PTP_CFG_MISC, 0x0000a0), REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4), REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8), diff --git a/drivers/net/ethernet/mscc/ocelot_regs.c b/drivers/net/ethernet/mscc/ocelot_regs.c index b88b589..ed4dd01 100644 --- a/drivers/net/ethernet/mscc/ocelot_regs.c +++ b/drivers/net/ethernet/mscc/ocelot_regs.c @@ -239,6 +239,8 @@ static const u32 ocelot_ptp_regmap[] = { REG(PTP_PIN_TOD_SEC_MSB, 0x000004), REG(PTP_PIN_TOD_SEC_LSB, 0x000008), REG(PTP_PIN_TOD_NSEC, 0x00000c), + REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014), + REG(PTP_PIN_WF_LOW_PERIOD, 0x000018), REG(PTP_CFG_MISC, 0x0000a0), REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4), REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8), diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index a588b6372..c7ba83b 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -385,6 +385,8 @@ enum ocelot_reg { PTP_PIN_TOD_SEC_MSB, PTP_PIN_TOD_SEC_LSB, PTP_PIN_TOD_NSEC, + PTP_PIN_WF_HIGH_PERIOD, + PTP_PIN_WF_LOW_PERIOD, PTP_CFG_MISC, PTP_CLK_CFG_ADJ_CFG, PTP_CLK_CFG_ADJ_FREQ, diff --git a/include/soc/mscc/ocelot_ptp.h b/include/soc/mscc/ocelot_ptp.h index f01b0ce..aae1570 100644 --- a/include/soc/mscc/ocelot_ptp.h +++ b/include/soc/mscc/ocelot_ptp.h @@ -17,6 +17,8 @@ #define PTP_PIN_TOD_SEC_MSB_RSZ PTP_PIN_CFG_RSZ #define PTP_PIN_TOD_SEC_LSB_RSZ PTP_PIN_CFG_RSZ #define PTP_PIN_TOD_NSEC_RSZ PTP_PIN_CFG_RSZ +#define PTP_PIN_WF_HIGH_PERIOD_RSZ PTP_PIN_CFG_RSZ +#define PTP_PIN_WF_LOW_PERIOD_RSZ PTP_PIN_CFG_RSZ #define PTP_PIN_CFG_DOM BIT(0) #define PTP_PIN_CFG_SYNC BIT(2) -- 2.7.4