Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp531336ybb; Fri, 20 Mar 2020 03:41:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu28m9y3bJhRT7d0PJzuDaoSah6Aw0DAtradAXNIq38s9YoVscAZeZFOXewXGSIwQsAa02E X-Received: by 2002:aca:cf48:: with SMTP id f69mr5478816oig.122.1584700912052; Fri, 20 Mar 2020 03:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584700912; cv=none; d=google.com; s=arc-20160816; b=jiFmHJq1b9XGE1zdLAUecMMT3djCqec3A2y+mrQ/d8dhafnWK8evT+nxnTTm5cJKQm jfQIdXFyaYW7It7R5OUu2ZJQ9gS3FoGSDTmwveT0lN9I7jGrD+ac0zvxG8/Mds6vUaa3 1pxL/EEz+qTl0jEfZW7sBXGcWTLd9eVBco9LUSPHWKgWv3KIeWJ/A5IHJcXqpDFoteT7 SX9RSUrkArSs6OcyZJh6jNK5c4oEPeuAIWwiqXwgJigmirnwlmNM/W8KwD6pm4gUrWdX LXcg4DqvEqR89OMqA5984G0Eh8MTdcz12ML7t7/hJa2wejQ/jgKySW9QJUW2AGt+UOr6 Ga4w== 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=KL9JSMCclPxL41ECcDRiUiKwgRxwF/DH2jpBZ6ob9bg=; b=nSJLBChCeQvmIja018024rzfD39MzcutLq18xxs0Z+hofN6wkuYpJcROxxp8VEP3f/ DbBLejvgfxw+En8PlJ8Ye1w7Rr8x6wBjJC4paer1v4wOWhGRiuyC868PgyFC3DEPwtqe yxruDftFI6Bfw8gTMDBEf+8IIsWzKXu5m5o8akG+3HYuRJLtWUINWP02kS50al0TAxP7 51+CxEOh1eU1j6hRk9hdjbvce+GX1+KttKhsCH3alIBpnRG8SI9/L+MUCqhj6kWuiSez ldTZN3bcQ6QhsEen+EKfchpZ4bRK3yn8GNqda3XKBhrIPM0zCtIBFajoRC/Q2YQEzo4r yGUw== 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 y17si2761987oto.70.2020.03.20.03.41.38; Fri, 20 Mar 2020 03:41:52 -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 S1727422AbgCTKlL (ORCPT + 99 others); Fri, 20 Mar 2020 06:41:11 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51882 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727338AbgCTKlH (ORCPT ); Fri, 20 Mar 2020 06:41:07 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 75F781A0538; Fri, 20 Mar 2020 11:41:05 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5026C1A0543; Fri, 20 Mar 2020 11:40:59 +0100 (CET) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2ADB440305; Fri, 20 Mar 2020 18:40:50 +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: [PATCH 4/6] net: mscc: ocelot: redefine PTP pins Date: Fri, 20 Mar 2020 18:37:24 +0800 Message-Id: <20200320103726.32559-5-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200320103726.32559-1-yangbo.lu@nxp.com> References: <20200320103726.32559-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 There are 5 PTP_PINS register groups on Ocelot switch. Except the one used for TOD operations, there are still 4 register groups for programmable pins. So redefine the 4 programmable pins. Signed-off-by: Yangbo Lu --- include/soc/mscc/ocelot.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index d9bad70..0ad61e3 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -440,10 +440,11 @@ enum ocelot_regfield { REGFIELD_MAX }; -enum ocelot_clk_pins { - ALT_PPS_PIN = 1, - EXT_CLK_PIN, - ALT_LDST_PIN, +enum ocelot_ptp_pins { + PTP_PIN_0, + PTP_PIN_1, + PTP_PIN_2, + PTP_PIN_3, TOD_ACC_PIN }; -- 2.7.4