| .. | .. | 
|---|
 | 1 | +# SPDX-License-Identifier: GPL-2.0-only  | 
|---|
| 1 | 2 |  config STMMAC_ETH | 
|---|
| 2 |  | -	tristate "STMicroelectronics 10/100/1000/EQOS Ethernet driver"  | 
|---|
 | 3 | +	tristate "STMicroelectronics Multi-Gigabit Ethernet driver"  | 
|---|
| 3 | 4 |  	depends on HAS_IOMEM && HAS_DMA | 
|---|
| 4 | 5 |  	select MII | 
|---|
| 5 |  | -	select PHYLIB  | 
|---|
 | 6 | +	select PCS_XPCS  | 
|---|
 | 7 | +	select PAGE_POOL  | 
|---|
 | 8 | +	select PHYLINK  | 
|---|
| 6 | 9 |  	select CRC32 | 
|---|
| 7 | 10 |  	imply PTP_1588_CLOCK | 
|---|
| 8 | 11 |  	select RESET_CONTROLLER | 
|---|
| 9 |  | -	---help---  | 
|---|
 | 12 | +	help  | 
|---|
| 10 | 13 |  	  This is the driver for the Ethernet IPs built around a | 
|---|
| 11 | 14 |  	  Synopsys IP Core. | 
|---|
| 12 | 15 |   | 
|---|
| 13 | 16 |  if STMMAC_ETH | 
|---|
 | 17 | +  | 
|---|
 | 18 | +config STMMAC_SELFTESTS  | 
|---|
 | 19 | +	bool "Support for STMMAC Selftests"  | 
|---|
 | 20 | +	depends on INET  | 
|---|
 | 21 | +	depends on STMMAC_ETH  | 
|---|
 | 22 | +	default n  | 
|---|
 | 23 | +	help  | 
|---|
 | 24 | +	  This adds support for STMMAC Selftests using ethtool. Enable this  | 
|---|
 | 25 | +	  feature if you are facing problems with your HW and submit the test  | 
|---|
 | 26 | +	  results to the netdev Mailing List.  | 
|---|
| 14 | 27 |   | 
|---|
| 15 | 28 |  config STMMAC_UIO | 
|---|
| 16 | 29 |  	tristate "STMMAC_UIO ethernet controller" | 
|---|
| .. | .. | 
|---|
| 21 | 34 |   | 
|---|
| 22 | 35 |  config STMMAC_ETHTOOL | 
|---|
| 23 | 36 |  	bool "Ethtool feature for STMMAC" | 
|---|
| 24 |  | -	default STMMAC_ETH  | 
|---|
 | 37 | +	default STMMAC_ETH if !ROCKCHIP_MINI_KERNEL  | 
|---|
| 25 | 38 |  	help | 
|---|
| 26 | 39 |  	  This selects the ethtool function, default is Y. | 
|---|
| 27 | 40 |   | 
|---|
| 28 | 41 |  config STMMAC_FULL | 
|---|
| 29 | 42 |  	bool "Support full driver for STMMAC" | 
|---|
| 30 |  | -	default STMMAC_ETH  | 
|---|
 | 43 | +	default STMMAC_ETH if !ROCKCHIP_MINI_KERNEL  | 
|---|
| 31 | 44 |  	help | 
|---|
| 32 | 45 |  	  This selects the full function, default is Y, full-featured version | 
|---|
| 33 | 46 |  	  includes 4.10 and other versions, if it is N, only 4.10 core working. | 
|---|
| 34 |  | -  | 
|---|
| 35 |  | -config STMMAC_PTP  | 
|---|
| 36 |  | -	bool "PTP feature for STMMAC"  | 
|---|
| 37 |  | -	default STMMAC_ETH  | 
|---|
| 38 |  | -	help  | 
|---|
| 39 |  | -	  This selects the ptp timestamp function, default is Y.  | 
|---|
| 40 | 47 |   | 
|---|
| 41 | 48 |  config STMMAC_PLATFORM | 
|---|
| 42 | 49 |  	tristate "STMMAC Platform bus support" | 
|---|
| 43 | 50 |  	depends on STMMAC_ETH | 
|---|
| 44 | 51 |  	select MFD_SYSCON | 
|---|
| 45 | 52 |  	default y | 
|---|
| 46 |  | -	---help---  | 
|---|
 | 53 | +	help  | 
|---|
| 47 | 54 |  	  This selects the platform specific bus support for the stmmac driver. | 
|---|
| 48 | 55 |  	  This is the driver used on several SoCs: | 
|---|
| 49 | 56 |  	  STi, Allwinner, Amlogic Meson, Altera SOCFPGA. | 
|---|
| .. | .. | 
|---|
| 56 | 63 |   | 
|---|
| 57 | 64 |  config DWMAC_DWC_QOS_ETH | 
|---|
| 58 | 65 |  	tristate "Support for snps,dwc-qos-ethernet.txt DT binding." | 
|---|
| 59 |  | -	select PHYLIB  | 
|---|
| 60 | 66 |  	select CRC32 | 
|---|
| 61 | 67 |  	select MII | 
|---|
| 62 | 68 |  	depends on OF && HAS_DMA | 
|---|
| .. | .. | 
|---|
| 66 | 72 |  config DWMAC_GENERIC | 
|---|
| 67 | 73 |  	tristate "Generic driver for DWMAC" | 
|---|
| 68 | 74 |  	default STMMAC_PLATFORM | 
|---|
| 69 |  | -	---help---  | 
|---|
 | 75 | +	help  | 
|---|
| 70 | 76 |  	  Generic DWMAC driver for platforms that don't require any | 
|---|
| 71 | 77 |  	  platform specific code to function or is using platform | 
|---|
| 72 | 78 |  	  data for setup. | 
|---|
| .. | .. | 
|---|
| 98 | 104 |  	default ARCH_LPC18XX | 
|---|
| 99 | 105 |  	depends on OF && (ARCH_LPC18XX || COMPILE_TEST) | 
|---|
| 100 | 106 |  	select MFD_SYSCON | 
|---|
| 101 |  | -	---help---  | 
|---|
 | 107 | +	help  | 
|---|
| 102 | 108 |  	  Support for NXP LPC18xx/43xx DWMAC Ethernet. | 
|---|
 | 109 | +  | 
|---|
 | 110 | +config DWMAC_MEDIATEK  | 
|---|
 | 111 | +	tristate "MediaTek MT27xx GMAC support"  | 
|---|
 | 112 | +	depends on OF && (ARCH_MEDIATEK || COMPILE_TEST)  | 
|---|
 | 113 | +	help  | 
|---|
 | 114 | +	  Support for MediaTek GMAC Ethernet controller.  | 
|---|
 | 115 | +  | 
|---|
 | 116 | +	  This selects the MT2712 SoC support for the stmmac driver.  | 
|---|
| 103 | 117 |   | 
|---|
| 104 | 118 |  config DWMAC_MESON | 
|---|
| 105 | 119 |  	tristate "Amlogic Meson dwmac support" | 
|---|
| .. | .. | 
|---|
| 123 | 137 |  	  This selects the Oxford Semiconductor OXNASSoC glue layer support for | 
|---|
| 124 | 138 |  	  the stmmac device driver. This driver is used for OX820. | 
|---|
| 125 | 139 |   | 
|---|
 | 140 | +config DWMAC_QCOM_ETHQOS  | 
|---|
 | 141 | +	tristate "Qualcomm ETHQOS support"  | 
|---|
 | 142 | +	default ARCH_QCOM  | 
|---|
 | 143 | +	depends on OF && (ARCH_QCOM || COMPILE_TEST)  | 
|---|
 | 144 | +	help  | 
|---|
 | 145 | +	  Support for the Qualcomm ETHQOS core.  | 
|---|
 | 146 | +  | 
|---|
 | 147 | +	  This selects the Qualcomm ETHQOS glue layer support for the  | 
|---|
 | 148 | +	  stmmac device driver.  | 
|---|
 | 149 | +  | 
|---|
| 126 | 150 |  config DWMAC_ROCKCHIP | 
|---|
| 127 | 151 |  	tristate "Rockchip dwmac support" | 
|---|
| 128 | 152 |  	default ARCH_ROCKCHIP | 
|---|
| .. | .. | 
|---|
| 137 | 161 |  config DWMAC_ROCKCHIP_TOOL | 
|---|
| 138 | 162 |  	bool "Rockchip dwmac tool support" | 
|---|
| 139 | 163 |  	depends on DWMAC_ROCKCHIP | 
|---|
| 140 |  | -	default DWMAC_ROCKCHIP  | 
|---|
 | 164 | +	default DWMAC_ROCKCHIP if !ROCKCHIP_MINI_KERNEL  | 
|---|
| 141 | 165 |  	help | 
|---|
| 142 | 166 |  	  Support for Ethernet functions on Rockchip SoCs. | 
|---|
| 143 | 167 |   | 
|---|
| .. | .. | 
|---|
| 161 | 185 |  	default ARCH_STI | 
|---|
| 162 | 186 |  	depends on OF && (ARCH_STI || COMPILE_TEST) | 
|---|
| 163 | 187 |  	select MFD_SYSCON | 
|---|
| 164 |  | -	---help---  | 
|---|
 | 188 | +	help  | 
|---|
| 165 | 189 |  	  Support for ethernet controller on STi SOCs. | 
|---|
| 166 | 190 |   | 
|---|
| 167 | 191 |  	  This selects STi SoC glue layer support for the stmmac | 
|---|
| .. | .. | 
|---|
| 173 | 197 |  	default ARCH_STM32 | 
|---|
| 174 | 198 |  	depends on OF && HAS_IOMEM && (ARCH_STM32 || COMPILE_TEST) | 
|---|
| 175 | 199 |  	select MFD_SYSCON | 
|---|
| 176 |  | -	---help---  | 
|---|
 | 200 | +	help  | 
|---|
| 177 | 201 |  	  Support for ethernet controller on STM32 SOCs. | 
|---|
| 178 | 202 |   | 
|---|
| 179 | 203 |  	  This selects STM32 SoC glue layer support for the stmmac | 
|---|
| .. | .. | 
|---|
| 184 | 208 |  	tristate "Allwinner GMAC support" | 
|---|
| 185 | 209 |  	default ARCH_SUNXI | 
|---|
| 186 | 210 |  	depends on OF && (ARCH_SUNXI || COMPILE_TEST) | 
|---|
| 187 |  | -	---help---  | 
|---|
 | 211 | +	help  | 
|---|
| 188 | 212 |  	  Support for Allwinner A20/A31 GMAC ethernet controllers. | 
|---|
| 189 | 213 |   | 
|---|
| 190 | 214 |  	  This selects Allwinner SoC glue layer support for the | 
|---|
| .. | .. | 
|---|
| 196 | 220 |  	default ARCH_SUNXI | 
|---|
| 197 | 221 |  	depends on OF && (ARCH_SUNXI || COMPILE_TEST) | 
|---|
| 198 | 222 |  	select MDIO_BUS_MUX | 
|---|
| 199 |  | -	---help---  | 
|---|
 | 223 | +	help  | 
|---|
| 200 | 224 |  	  Support for Allwinner H3 A83T A64 EMAC ethernet controllers. | 
|---|
| 201 | 225 |   | 
|---|
| 202 | 226 |  	  This selects Allwinner SoC glue layer support for the | 
|---|
| 203 | 227 |  	  stmmac device driver. This driver is used for H3/A83T/A64 | 
|---|
| 204 | 228 |  	  EMAC ethernet controller. | 
|---|
 | 229 | +  | 
|---|
 | 230 | +config DWMAC_IMX8  | 
|---|
 | 231 | +	tristate "NXP IMX8 DWMAC support"  | 
|---|
 | 232 | +	default ARCH_MXC  | 
|---|
 | 233 | +	depends on OF && (ARCH_MXC || COMPILE_TEST)  | 
|---|
 | 234 | +	select MFD_SYSCON  | 
|---|
 | 235 | +	help  | 
|---|
 | 236 | +	  Support for ethernet controller on NXP i.MX8 SOCs.  | 
|---|
 | 237 | +  | 
|---|
 | 238 | +	  This selects NXP SoC glue layer support for the stmmac  | 
|---|
 | 239 | +	  device driver. This driver is used for i.MX8 series like  | 
|---|
 | 240 | +	  iMX8MP/iMX8DXL GMAC ethernet controller.  | 
|---|
 | 241 | +  | 
|---|
 | 242 | +config DWMAC_INTEL_PLAT  | 
|---|
 | 243 | +	tristate "Intel dwmac support"  | 
|---|
 | 244 | +	depends on OF && COMMON_CLK  | 
|---|
 | 245 | +	depends on STMMAC_ETH  | 
|---|
 | 246 | +	help  | 
|---|
 | 247 | +	  Support for ethernet controllers on Intel SoCs  | 
|---|
 | 248 | +  | 
|---|
 | 249 | +	  This selects the Intel platform specific glue layer support for  | 
|---|
 | 250 | +	  the stmmac device driver. This driver is used for the Intel Keem Bay  | 
|---|
 | 251 | +	  SoC.  | 
|---|
| 205 | 252 |  endif | 
|---|
 | 253 | +  | 
|---|
 | 254 | +config DWMAC_INTEL  | 
|---|
 | 255 | +	tristate "Intel GMAC support"  | 
|---|
 | 256 | +	default X86  | 
|---|
 | 257 | +	depends on X86 && STMMAC_ETH && PCI  | 
|---|
 | 258 | +	depends on COMMON_CLK  | 
|---|
 | 259 | +	help  | 
|---|
 | 260 | +	  This selects the Intel platform specific bus support for the  | 
|---|
 | 261 | +	  stmmac driver. This driver is used for Intel Quark/EHL/TGL.  | 
|---|
| 206 | 262 |   | 
|---|
| 207 | 263 |  config STMMAC_PCI | 
|---|
| 208 | 264 |  	tristate "STMMAC PCI bus support" | 
|---|
| 209 | 265 |  	depends on STMMAC_ETH && PCI | 
|---|
| 210 |  | -	---help---  | 
|---|
 | 266 | +	depends on COMMON_CLK  | 
|---|
 | 267 | +	help  | 
|---|
| 211 | 268 |  	  This selects the platform specific bus support for the stmmac driver. | 
|---|
| 212 | 269 |  	  This driver was tested on XLINX XC2V3000 FF1152AMT0221 | 
|---|
| 213 | 270 |  	  D1215994A VIRTEX FPGA board and SNPS QoS IPK Prototyping Kit. | 
|---|