Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3734681pxb; Tue, 26 Jan 2021 03:28:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJysK54JkFSMtUJowjgUhldD0ndxwS85UXGKDooSPX3AxzBj+HroZg4DSMKkjoq+hDtRK5ie X-Received: by 2002:a17:906:c1d9:: with SMTP id bw25mr3096364ejb.452.1611660498925; Tue, 26 Jan 2021 03:28:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611660498; cv=none; d=google.com; s=arc-20160816; b=BLpVQu8WE2T+deGfrqirO25a/dGsjcALJSwez5kGRIgWQIpAFFbFdtT9viVUhfh8cv V3YlMl9gADTVhPaII7t0KUtQbahf5itKZ4Kur82N8/m965SDbLXC6uLBvtMPNoqECen2 vrcCgCPk21vlXMi+MjlGsQ+LrnQIomsPUedKKHou1/earGIsnkgzYyI/n+A1XvqWI5Cc TGgfKL24YW8A8FldS3zIJ6B1kA4GxMTrFQdzRDUjm8N1drWpyhUSH+81NWhFq8TKSZR+ fammFF3N2DJXJTo7WwbR1bJgs6CuXZ+805cE6ziXBL15D/+Him6G87QVpvxCnwRTccJB 0FjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=idYBQgWzCZ2occjOIaFzeokZNfKSUbsIA04PK2NZDb0=; b=m6I6hwb0mip9eLt5GS8xF2kAG+MFyeLMc/9gY5v/3O714cmki+NmNe3w08NfwLadpo qnt8xYFQWhvjK1sgGhFqJnhB4DXovCrXUTpQfiR783MjYgJIyDO/Bs7MUiMJKZKXCU/+ JO8XSXKQoErnaNIEFeIr58ZKNoDcPU577Y3f8+IIt6mgQ0FucEh1u0C0wkOt/tWfqk7t 5WI6cImPFLkAyKpRh63P1HHv1JjFifoUM6HS2kgVM5fCY9Y0JNZ+BQ8kAbUnJ3fd1s3G ZwyMvVP0fuIde878DSex3SpmXM+Wrl6LRsiz6vo3s3GQxS9x9hOnDabwwb8PpJa7ZP0V xf4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si6568389edz.362.2021.01.26.03.27.54; Tue, 26 Jan 2021 03:28:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392272AbhAZLXv (ORCPT + 99 others); Tue, 26 Jan 2021 06:23:51 -0500 Received: from mga07.intel.com ([134.134.136.100]:43131 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbhAZIzn (ORCPT ); Tue, 26 Jan 2021 03:55:43 -0500 IronPort-SDR: KKL/ZWufeUk/aISqYHmG5FDkdh3TApN0Fpde8RGFVvUxvqSGWeJg5nq1Csuexc1lDb2tzYFPuv ibUQrdI+7yZg== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="243950321" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="243950321" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 00:54:53 -0800 IronPort-SDR: HiSh2Eab8nbapDkJt/yoex7HLrUMn5c6fcYl8n6fDvfcicaBSFH5j4xuk/qLprrEo+P/BqLUc8 LTbakaIISQ5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="393680509" Received: from glass.png.intel.com ([10.158.65.51]) by orsmga007.jf.intel.com with ESMTP; 26 Jan 2021 00:54:49 -0800 From: Wong Vee Khee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ong Boon Leong , Voon Wei Feng , Wong Vee Khee Subject: [PATCH net-next 1/1] stmmac: intel: Add ADL-S 1Gbps PCI IDs Date: Tue, 26 Jan 2021 16:58:32 +0800 Message-Id: <20210126085832.3814-1-vee.khee.wong@intel.com> X-Mailer: git-send-email 2.17.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Wong, Vee Khee" Added PCI IDs for both Ethernet TSN Controllers on the ADL-S. Also, skip SerDes programming sequences as these are being carried out at the BIOS level for ADL-S. Signed-off-by: Wong, Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 9a6a519426a0..9c272a241136 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -457,6 +457,21 @@ static struct stmmac_pci_info tgl_sgmii1g_info = { .setup = tgl_sgmii_data, }; +static int adls_sgmii_data(struct pci_dev *pdev, + struct plat_stmmacenet_data *plat) +{ + plat->bus_id = 1; + plat->phy_interface = PHY_INTERFACE_MODE_SGMII; + + /* SerDes power up and power down are done in BIOS for ADL */ + + return tgl_common_data(pdev, plat); +} + +static struct stmmac_pci_info adls_sgmii1g_info = { + .setup = adls_sgmii_data, +}; + static const struct stmmac_pci_func_data galileo_stmmac_func_data[] = { { .func = 6, @@ -724,6 +739,8 @@ static SIMPLE_DEV_PM_OPS(intel_eth_pm_ops, intel_eth_pci_suspend, #define PCI_DEVICE_ID_INTEL_TGLH_SGMII1G_0_ID 0x43ac #define PCI_DEVICE_ID_INTEL_TGLH_SGMII1G_1_ID 0x43a2 #define PCI_DEVICE_ID_INTEL_TGL_SGMII1G_ID 0xa0ac +#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_0_ID 0x7aac +#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_1_ID 0x7aad static const struct pci_device_id intel_eth_pci_id_table[] = { { PCI_DEVICE_DATA(INTEL, QUARK_ID, &quark_info) }, @@ -739,6 +756,8 @@ static const struct pci_device_id intel_eth_pci_id_table[] = { { PCI_DEVICE_DATA(INTEL, TGL_SGMII1G_ID, &tgl_sgmii1g_info) }, { PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_0_ID, &tgl_sgmii1g_info) }, { PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_1_ID, &tgl_sgmii1g_info) }, + { PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_0_ID, &adls_sgmii1g_info) }, + { PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_1_ID, &adls_sgmii1g_info) }, {} }; MODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table); -- 2.17.0