From patchwork Wed Jul 17 12:29:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Oberfichtner X-Patchwork-Id: 1961607 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=to2yLqG4; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=npUSwZwh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WPFcP1McZz1xqc for ; Wed, 17 Jul 2024 22:29:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D46B7889A2; Wed, 17 Jul 2024 14:29:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1721219354; bh=nY5S3upYd6k1bDSJfhQ4oADqnHo443C40Q6xN6z00p8=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=to2yLqG4jy7fV0bYsuN4+xfUgBi+MxJEoZ+L4m+o9iZTysjMn1fT8B00k9H5XQ0CL QWFX67fQTThG154Aa686XnMEZgQmbzx5nbFu6f+malxnBdwyXaY3JvA7zuhLkCrMmO 8JAokz/ZoX9OVYxmD3qgFMMVqP1tKJdyeRZqHmbYNzNXgwf026CRJTR9PalzlGa00Q SVcwqmHaIHDY0paBmoEFV3x0gjiVaaeOp2oqBstSGcMvzPXG4GTDMxQMkDye2Ud82E R8Wu8TZNeNKKQGwit9bacI5kgOzH8OfJceBsuLVDYK2bOr0pK1oDiTEX0cqOeiUcA6 J6SW1HQHWIB/g== Received: from localhost (unknown [IPv6:2001:861:52:5f60:7f4c:42be:fdf8:3b8a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pro@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id F22F48874C; Wed, 17 Jul 2024 14:29:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1721219354; bh=nY5S3upYd6k1bDSJfhQ4oADqnHo443C40Q6xN6z00p8=; h=From:To:Cc:Subject:Date:From; b=npUSwZwhpF5fhQYQsL30ee+I6rq6tyamujISTVa/XkKfZn4U1RoxwV7goObNH5gVi 8mozGIbrX83un/9vET7cIXNtzNgyICylzAmFsHxZ2Jo45iBJBfBkLhfqofmzkIYN80 3YpDOWEVyG5kPoYjaFriqci7iqZnvLuFRKqpgfjACFSwNJUx302uo1bjUz0CpZ2NB8 IxfYWdvH8Gjxt8qsd00lldYkhmW1B/EmS6pmD8UeP7M2ZWaobtGNZLHtjg4R+LVS+E HOKw60RTnI7XQ0/h7tG5hJsjQl5HUzrYGNhbL3FK90EI0xDlglohOtsEAfWE5oPMKY 4991tLaa3xxlg== From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: bmeng.cn@gmail.com, caleb.connolly@linaro.org, christophe.roullier@foss.st.com, epsi@gmx.de, eugen.hristev@collabora.com, festevam@gmail.com, forbidden405@outlook.com, ivprusov@salutedevices.com, joe.hershberger@ni.com, jonas@kwiboo.se, kever.yang@rock-chips.com, leyfoon.tan@starfivetech.com, marek.vasut+renesas@mailbox.org, marjolaine.amate@odyssee-systemes.fr, neil.armstrong@linaro.org, n-francis@ti.com, patrice.chotard@foss.st.com, patrick.delaunay@foss.st.com, philipp.tomsich@vrull.eu, rfried.dev@gmail.com, seanga2@gmail.com, sebastian.reichel@collabora.com, sebastien.szymanski@armadeus.com, sjg@chromium.org, sumit.garg@linaro.org, trini@konsulko.com, xypron.glpk@gmx.de, marex@denx.de, Philip Oberfichtner Subject: [PATCH v3 0/5] net: dwc_eth_qos: Add glue driver for Intel MAC Date: Wed, 17 Jul 2024 14:29:01 +0200 Message-Id: <20240717122906.117861-1-pro@denx.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This patch series implements the dwc_eth_qos glue driver for Intel SOCs. Before doing that, a few general adaptions to the dwc_eth_qos.c main driver are required. Most notably, the preparation for PCI based driver instances, which do not necessarily use a device tree. This patch series depends on: "net: dwc_eth_qos: mdio: Implement clause 45": https://patchwork.ozlabs.org/project/uboot/patch/20240507094237.168238-1-pro@denx.de/ Changes in V3: - Replace mfence() with mb() - Clean-up eqos_get_base_addr() - Several style fixes for dwc_eth_qos_intel Philip Oberfichtner (5): x86: provide mb() macro net: dwc_eth_qos: Fix header to be self-contained net: dwc_eth_qos: Adapt probe() for PCI devices net: dwc_eth_qos: Implement bind() for PCI devices net: dwc_eth_qos: Add glue driver for Intel MAC arch/x86/cpu/mp_init.c | 10 +- arch/x86/include/asm/cpu.h | 5 - arch/x86/include/asm/io.h | 1 + drivers/net/Kconfig | 7 + drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 79 ++++- drivers/net/dwc_eth_qos.h | 8 +- drivers/net/dwc_eth_qos_imx.c | 6 + drivers/net/dwc_eth_qos_intel.c | 449 +++++++++++++++++++++++++++++ drivers/net/dwc_eth_qos_intel.h | 57 ++++ drivers/net/dwc_eth_qos_qcom.c | 6 + drivers/net/dwc_eth_qos_rockchip.c | 6 + drivers/net/dwc_eth_qos_starfive.c | 6 + drivers/net/dwc_eth_qos_stm32.c | 6 + include/pci_ids.h | 9 + 15 files changed, 637 insertions(+), 19 deletions(-) create mode 100644 drivers/net/dwc_eth_qos_intel.c create mode 100644 drivers/net/dwc_eth_qos_intel.h