From f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 31 Jan 2024 01:04:47 +0000 Subject: [PATCH] add driver 5G --- kernel/drivers/net/ethernet/stmicro/stmmac/Kconfig | 106 ++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 85 insertions(+), 21 deletions(-) diff --git a/kernel/drivers/net/ethernet/stmicro/stmmac/Kconfig b/kernel/drivers/net/ethernet/stmicro/stmmac/Kconfig index 21f4074..d6cbbac 100644 --- a/kernel/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/kernel/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -1,42 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only config STMMAC_ETH - tristate "STMicroelectronics 10/100/1000/EQOS Ethernet driver" + tristate "STMicroelectronics Multi-Gigabit Ethernet driver" depends on HAS_IOMEM && HAS_DMA select MII - select PHYLIB + select PCS_XPCS + select PAGE_POOL + select PHYLINK select CRC32 imply PTP_1588_CLOCK select RESET_CONTROLLER - ---help--- + help This is the driver for the Ethernet IPs built around a Synopsys IP Core. if STMMAC_ETH +config STMMAC_SELFTESTS + bool "Support for STMMAC Selftests" + depends on INET + depends on STMMAC_ETH + default n + help + This adds support for STMMAC Selftests using ethtool. Enable this + feature if you are facing problems with your HW and submit the test + results to the netdev Mailing List. + +config STMMAC_UIO + tristate "STMMAC_UIO ethernet controller" + default n + select UIO + help + Say M here if you want to use the stmmac_uio.ko for DPDK. + config STMMAC_ETHTOOL bool "Ethtool feature for STMMAC" - default STMMAC_ETH + default STMMAC_ETH if !ROCKCHIP_MINI_KERNEL help This selects the ethtool function, default is Y. config STMMAC_FULL bool "Support full driver for STMMAC" - default STMMAC_ETH + default STMMAC_ETH if !ROCKCHIP_MINI_KERNEL help This selects the full function, default is Y, full-featured version includes 4.10 and other versions, if it is N, only 4.10 core working. - -config STMMAC_PTP - bool "PTP feature for STMMAC" - default STMMAC_ETH - help - This selects the ptp timestamp function, default is Y. config STMMAC_PLATFORM tristate "STMMAC Platform bus support" depends on STMMAC_ETH select MFD_SYSCON default y - ---help--- + help This selects the platform specific bus support for the stmmac driver. This is the driver used on several SoCs: STi, Allwinner, Amlogic Meson, Altera SOCFPGA. @@ -49,7 +63,6 @@ config DWMAC_DWC_QOS_ETH tristate "Support for snps,dwc-qos-ethernet.txt DT binding." - select PHYLIB select CRC32 select MII depends on OF && HAS_DMA @@ -59,7 +72,7 @@ config DWMAC_GENERIC tristate "Generic driver for DWMAC" default STMMAC_PLATFORM - ---help--- + help Generic DWMAC driver for platforms that don't require any platform specific code to function or is using platform data for setup. @@ -91,8 +104,16 @@ default ARCH_LPC18XX depends on OF && (ARCH_LPC18XX || COMPILE_TEST) select MFD_SYSCON - ---help--- + help Support for NXP LPC18xx/43xx DWMAC Ethernet. + +config DWMAC_MEDIATEK + tristate "MediaTek MT27xx GMAC support" + depends on OF && (ARCH_MEDIATEK || COMPILE_TEST) + help + Support for MediaTek GMAC Ethernet controller. + + This selects the MT2712 SoC support for the stmmac driver. config DWMAC_MESON tristate "Amlogic Meson dwmac support" @@ -116,6 +137,16 @@ This selects the Oxford Semiconductor OXNASSoC glue layer support for the stmmac device driver. This driver is used for OX820. +config DWMAC_QCOM_ETHQOS + tristate "Qualcomm ETHQOS support" + default ARCH_QCOM + depends on OF && (ARCH_QCOM || COMPILE_TEST) + help + Support for the Qualcomm ETHQOS core. + + This selects the Qualcomm ETHQOS glue layer support for the + stmmac device driver. + config DWMAC_ROCKCHIP tristate "Rockchip dwmac support" default ARCH_ROCKCHIP @@ -130,7 +161,7 @@ config DWMAC_ROCKCHIP_TOOL bool "Rockchip dwmac tool support" depends on DWMAC_ROCKCHIP - default DWMAC_ROCKCHIP + default DWMAC_ROCKCHIP if !ROCKCHIP_MINI_KERNEL help Support for Ethernet functions on Rockchip SoCs. @@ -154,7 +185,7 @@ default ARCH_STI depends on OF && (ARCH_STI || COMPILE_TEST) select MFD_SYSCON - ---help--- + help Support for ethernet controller on STi SOCs. This selects STi SoC glue layer support for the stmmac @@ -166,7 +197,7 @@ default ARCH_STM32 depends on OF && HAS_IOMEM && (ARCH_STM32 || COMPILE_TEST) select MFD_SYSCON - ---help--- + help Support for ethernet controller on STM32 SOCs. This selects STM32 SoC glue layer support for the stmmac @@ -177,7 +208,7 @@ tristate "Allwinner GMAC support" default ARCH_SUNXI depends on OF && (ARCH_SUNXI || COMPILE_TEST) - ---help--- + help Support for Allwinner A20/A31 GMAC ethernet controllers. This selects Allwinner SoC glue layer support for the @@ -189,18 +220,51 @@ default ARCH_SUNXI depends on OF && (ARCH_SUNXI || COMPILE_TEST) select MDIO_BUS_MUX - ---help--- + help Support for Allwinner H3 A83T A64 EMAC ethernet controllers. This selects Allwinner SoC glue layer support for the stmmac device driver. This driver is used for H3/A83T/A64 EMAC ethernet controller. + +config DWMAC_IMX8 + tristate "NXP IMX8 DWMAC support" + default ARCH_MXC + depends on OF && (ARCH_MXC || COMPILE_TEST) + select MFD_SYSCON + help + Support for ethernet controller on NXP i.MX8 SOCs. + + This selects NXP SoC glue layer support for the stmmac + device driver. This driver is used for i.MX8 series like + iMX8MP/iMX8DXL GMAC ethernet controller. + +config DWMAC_INTEL_PLAT + tristate "Intel dwmac support" + depends on OF && COMMON_CLK + depends on STMMAC_ETH + help + Support for ethernet controllers on Intel SoCs + + This selects the Intel platform specific glue layer support for + the stmmac device driver. This driver is used for the Intel Keem Bay + SoC. endif + +config DWMAC_INTEL + tristate "Intel GMAC support" + default X86 + depends on X86 && STMMAC_ETH && PCI + depends on COMMON_CLK + help + This selects the Intel platform specific bus support for the + stmmac driver. This driver is used for Intel Quark/EHL/TGL. config STMMAC_PCI tristate "STMMAC PCI bus support" depends on STMMAC_ETH && PCI - ---help--- + depends on COMMON_CLK + help This selects the platform specific bus support for the stmmac driver. This driver was tested on XLINX XC2V3000 FF1152AMT0221 D1215994A VIRTEX FPGA board and SNPS QoS IPK Prototyping Kit. -- Gitblit v1.6.2