From patchwork Fri Jan 15 19:28:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 363740 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp144759jap; Fri, 15 Jan 2021 11:31:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2K+lk3sJKZ5oqpQTV0GUjqUGEGXnnnSm2sAmhYt/gZHuJf8p8O93XgWLNQHeam2W7nIjQ X-Received: by 2002:a05:6402:407:: with SMTP id q7mr10939791edv.312.1610739115950; Fri, 15 Jan 2021 11:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610739115; cv=none; d=google.com; s=arc-20160816; b=NW3BTKZlKBAUYkLXa10CiUNaclp8U1FAjYodJSKGJUnrnSSThd97kQEL+xPrx3DklU NjsDIvySD4zycQP2nktPyWQYt1HoCUtYugy9eLCJNhhAo0st8XOikHEEp4wUVfcMJ48p NTMhqNNPVYBaSo5YDK/H8ozE9MeMbtVTVGqvbpyZlNr+tON6xbSNA1dayj4Sch2K8Sna 2+Ji9kzVM1TrAsYfrcJQXN4iDUA5jkOMwcUTf/W18oKY2STVlmu2peBit0pNigBZGRSr VYoWdu2Hdpx3S5BGwgu6WIjlfzQO692wqBNfscN19lSxWB75cFAdKsFNUiKVrjSeCYdQ z/NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3IjVqGOZhHQcBqnx6T9Ccoy8SnNQK59sbvFW6QMtN50=; b=cbh0K9BlJE013J/vp0Ku5ny+r0RWAJu/RMPfBkj89l3NQLFRVlHaSGfp6fwSpHD446 EyOigS86cxDN/Pilg9vVJMk1QdH5pMriBS5nsQt4uj2B3wzrN2Bq0D3ksWfCPVyujPJX agsq1uCqAyFVRfkYUEeF9auHF2mTn9Hw5a7V7UNw2l/Uy2ZQL5lftNqgOufXLDk229IM vflKwKy5zV6YqEX0HB8JOGvx+ix6NpQO8NH3vAuReoKliE854/d0JWeXeTwSJNDLw6pT zVXinj0YoEJNHRiRXhEyxoQEzrdBW+hK0zgSWzqjU06M9g2tA3cY+wCPKrWRBbWHRP5y XnJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nS5a7QLq; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si4858373edj.258.2021.01.15.11.31.55; Fri, 15 Jan 2021 11:31:55 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nS5a7QLq; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388599AbhAOTbD (ORCPT + 7 others); Fri, 15 Jan 2021 14:31:03 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36958 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387537AbhAOTbD (ORCPT ); Fri, 15 Jan 2021 14:31:03 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 10FJTP9M008584; Fri, 15 Jan 2021 13:29:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1610738965; bh=3IjVqGOZhHQcBqnx6T9Ccoy8SnNQK59sbvFW6QMtN50=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nS5a7QLqy3GjR9KWFzmciP6s0uwKFTiX3oodPvNWU/veI/AQa14ZNBWqxGnv8bfa8 /cKWLECYM6pUBpMDsnMRIw1CwEQZpr7CIwPinHobwhxeeGTAHr/2pnbWD2gq9vL6WY kLePeCMjtInKeszCnQ7e9Y7hEgUXhxpbm9gQ2n7c= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 10FJTP1A040939 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 Jan 2021 13:29:25 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 15 Jan 2021 13:29:25 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 15 Jan 2021 13:29:25 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 10FJTO6V058774; Fri, 15 Jan 2021 13:29:24 -0600 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski , Peter Ujfalusi , Vignesh Raghavendra , Rob Herring CC: , Sekhar Nori , , Grygorii Strashko Subject: [net-next 5/6] net: ti: cpsw_ale: add driver data for AM64 CPSW3g Date: Fri, 15 Jan 2021 21:28:52 +0200 Message-ID: <20210115192853.5469-6-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210115192853.5469-1-grygorii.strashko@ti.com> References: <20210115192853.5469-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vignesh Raghavendra The AM642x CPSW3g is similar to j721e-cpswxg except its ALE table size is 512 entries. Add entry for the same. Signed-off-by: Vignesh Raghavendra Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c index cdc308a2aa3e..d828f856237a 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.c +++ b/drivers/net/ethernet/ti/cpsw_ale.c @@ -1256,6 +1256,13 @@ static const struct cpsw_ale_dev_id cpsw_ale_id_match[] = { .major_ver_mask = 0x7, .vlan_entry_tbl = vlan_entry_k3_cpswxg, }, + { + .dev_id = "am64-cpswxg", + .features = CPSW_ALE_F_STATUS_REG | CPSW_ALE_F_HW_AUTOAGING, + .major_ver_mask = 0x7, + .vlan_entry_tbl = vlan_entry_k3_cpswxg, + .tbl_entries = 512, + }, { }, };