Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31120C61DA4 for ; Wed, 15 Mar 2023 09:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232251AbjCOJxZ (ORCPT ); Wed, 15 Mar 2023 05:53:25 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PTP capability to the Ethernet MAC. Signed-off-by: Durai Manickam KR --- 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, -- 2.25.1