From patchwork Wed Mar 15 09:50:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Durai Manickam KR X-Patchwork-Id: 70104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2249010wrd; Wed, 15 Mar 2023 03:34:50 -0700 (PDT) X-Google-Smtp-Source: AK7set+UupdatNPkzGO01FjGoz+FdV63PjgoKPsESAvtycJng/8JkocJgMQ+MG9e2eRexA5RxUsi X-Received: by 2002:aa7:982a:0:b0:624:c35c:ae8f with SMTP id q10-20020aa7982a000000b00624c35cae8fmr6990421pfl.25.1678876490730; Wed, 15 Mar 2023 03:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678876490; cv=none; d=google.com; s=arc-20160816; b=DA+cidO9FiTu6DvIVbv4Eh0brPhuRMZZAGScfxxu5KhhcQGwBQ4214WIlqYCPEeKCa 7A/IpD/bJNv6FZ+6hRq77IY9z89R6zjO3UAp8gFExL6ndGAeLnw9otLOB9FSicsNy44P UUAPHzPlBt3LHMBg+CMBaqxbS2nqOXFz87jVDRBA5t2NDZnctHl4KJvXta+hPlIdUI4Q AnGEIQDAkOUQAoQ/qgpXom8fU0fqC9trUmFPyvbr5s6iNejRqxCqtSnPojOA2XKBeBZm Jz966OlxYXUlHm2TvSKQkI3I0GmJo84PFtWv7xSGHNsiTA4Da6BBmAuRkdCFxj1GdNjY fY1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9+jyT1S/tPhwkaOQ6Xp9xAcEEtd/ZuulXq1+abR9ak=; b=ImE8/QEwNPNcLstg/P/gkkQ2eIRfNPB8M9+zLkA0IlM9FMONJUo64GM2B6FswIE2VO q0NcTa1E6hmgtVxG6YbhG4ZM/w1HfWmtor3h2oBFCyzWuQM52spBa/YbjZ/L88xxxW7I TcNsNYlWGCrQVLlp6JRlKaBjEiWJ2HKQV1f8+NJkEJ9Mqb3Y37FuPzcWbVokUcCQ1WmR /OzLU/e4RyeAX8+N5g78Hz0epz8+7XgPW0SWK5UWU1JHx+RYlD3iIFvGjZ7MyQQANyeh GYsomVZJh+jbRyQxhaNpISxP9k0NzwrR2xBN5bmEbBBdPpGDdiaNXIeA6QwTABoD0+3H 9evA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RrUhd1T7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a056a00005200b0056ea2b1b0fesi4724971pfk.119.2023.03.15.03.34.37; Wed, 15 Mar 2023 03:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RrUhd1T7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231142AbjCOJxY (ORCPT + 99 others); Wed, 15 Mar 2023 05:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbjCOJwn (ORCPT ); Wed, 15 Mar 2023 05:52:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3918093B; Wed, 15 Mar 2023 02:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1678873893; x=1710409893; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0u+UdGgrstqHyAt6lfy9Z9fjXjmo2PxFj4o6q3qUG/k=; b=RrUhd1T7qpVnGLpv6+vAjxmpzQOqQrYo+nZa7zqUxs5RNR8NsoEdLQmx CCHEvB/CNKGGxIYQamT4Vg8QuYHXhtxSIPaG2KK4XF+6eatYI1Fahxl03 bbDlQUtt/QePK/RUNUiTE8r2Qus/PfahO6q44ZH1dCHAWzUawaWCX00xh ZTHaQZKGAgFQSUep+8savHCxC12RE0ooZA95PEt1cWdLeKm9E/bIKIuGP kpNH/PaD1dUJdwp/Xb8LCBy3owI0qSV0+Vz7XsZM+dbAbKSzIN0k2bH6D p+l/ifX73BlDbBxOdC/HqV6IRPCbr2dMEtZeejE+kGU385/3o8wy0N6nT g==; X-IronPort-AV: E=Sophos;i="5.98,262,1673938800"; d="scan'208";a="201732120" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Mar 2023 02:51:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 15 Mar 2023 02:51:27 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Wed, 15 Mar 2023 02:51:19 -0700 From: Durai Manickam KR To: , , , , , , , , , , , , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 2/2] net: macb: Add PTP support to EMAC for sama7g5 Date: Wed, 15 Mar 2023 15:20:53 +0530 Message-ID: <20230315095053.53969-3-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230315095053.53969-1-durai.manickamkr@microchip.com> References: <20230315095053.53969-1-durai.manickamkr@microchip.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760429594696983330?= X-GMAIL-MSGID: =?utf-8?q?1760429594696983330?= Add PTP capability to the Ethernet MAC. Signed-off-by: Durai Manickam KR Reviewed-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 27fc6c903d25..1dbee16fe90a 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4853,7 +4853,8 @@ static const struct macb_config sama7g5_gem_config = { static const struct macb_config sama7g5_emac_config = { .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | - MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII, + MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII | + MACB_CAPS_GEM_HAS_PTP, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init,