1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "STMicroelectronics 10/100/1000/EQOS Ethernet driver"
4 depends on HAS_IOMEM && HAS_DMA
9 select RESET_CONTROLLER
11 This is the driver for the Ethernet IPs built around a
16 config STMMAC_PLATFORM
17 tristate "STMMAC Platform bus support"
22 This selects the platform specific bus support for the stmmac driver.
23 This is the driver used on several SoCs:
24 STi, Allwinner, Amlogic Meson, Altera SOCFPGA.
26 If you have a controller with this interface, say Y or M here.
32 config DWMAC_DWC_QOS_ETH
33 tristate "Support for snps,dwc-qos-ethernet.txt DT binding."
37 depends on OF && HAS_DMA
39 Support for chips using the snps,dwc-qos-ethernet.txt DT binding.
42 tristate "Generic driver for DWMAC"
43 default STMMAC_PLATFORM
45 Generic DWMAC driver for platforms that don't require any
46 platform specific code to function or is using platform
50 tristate "Adaptrum Anarion GMAC support"
52 depends on OF && (ARC || COMPILE_TEST)
54 Support for Adaptrum Anarion GMAC Ethernet controller.
56 This selects the Anarion SoC glue layer support for the stmmac driver.
59 tristate "QCA IPQ806x DWMAC support"
61 depends on OF && (ARCH_QCOM || COMPILE_TEST)
64 Support for QCA IPQ806X DWMAC Ethernet.
66 This selects the IPQ806x SoC glue layer support for the stmmac
67 device driver. This driver does not use any of the hardware
68 acceleration features available on this SoC. Network devices
69 will behave like standard non-accelerated ethernet interfaces.
72 tristate "NXP LPC18xx/43xx DWMAC support"
74 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
77 Support for NXP LPC18xx/43xx DWMAC Ethernet.
80 tristate "MediaTek MT27xx GMAC support"
81 depends on OF && (ARCH_MEDIATEK || COMPILE_TEST)
83 Support for MediaTek GMAC Ethernet controller.
85 This selects the MT2712 SoC support for the stmmac driver.
88 tristate "Amlogic Meson dwmac support"
90 depends on OF && COMMON_CLK && (ARCH_MESON || COMPILE_TEST)
92 Support for Ethernet controller on Amlogic Meson SoCs.
94 This selects the Amlogic Meson SoC glue layer support for
95 the stmmac device driver. This driver is used for Meson6,
96 Meson8, Meson8b and GXBB SoCs.
99 tristate "Oxford Semiconductor OXNAS dwmac support"
101 depends on OF && COMMON_CLK && (ARCH_OXNAS || COMPILE_TEST)
104 Support for Ethernet controller on Oxford Semiconductor OXNAS SoCs.
106 This selects the Oxford Semiconductor OXNASSoC glue layer support for
107 the stmmac device driver. This driver is used for OX820.
109 config DWMAC_QCOM_ETHQOS
110 tristate "Qualcomm ETHQOS support"
112 depends on OF && (ARCH_QCOM || COMPILE_TEST)
114 Support for the Qualcomm ETHQOS core.
116 This selects the Qualcomm ETHQOS glue layer support for the
117 stmmac device driver.
119 config DWMAC_ROCKCHIP
120 tristate "Rockchip dwmac support"
121 default ARCH_ROCKCHIP
122 depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
125 Support for Ethernet controller on Rockchip RK3288 SoC.
127 This selects the Rockchip RK3288 SoC glue layer support for
128 the stmmac device driver.
131 tristate "SOCFPGA dwmac support"
132 default (ARCH_SOCFPGA || ARCH_STRATIX10)
133 depends on OF && (ARCH_SOCFPGA || ARCH_STRATIX10 || COMPILE_TEST)
136 Support for ethernet controller on Altera SOCFPGA
138 This selects the Altera SOCFPGA SoC glue layer support
139 for the stmmac device driver. This driver is used for
140 arria5 and cyclone5 FPGA SoCs.
143 tristate "STi GMAC support"
145 depends on OF && (ARCH_STI || COMPILE_TEST)
148 Support for ethernet controller on STi SOCs.
150 This selects STi SoC glue layer support for the stmmac
151 device driver. This driver is used on for the STi series
152 SOCs GMAC ethernet controller.
155 tristate "STM32 DWMAC support"
157 depends on OF && HAS_IOMEM && (ARCH_STM32 || COMPILE_TEST)
160 Support for ethernet controller on STM32 SOCs.
162 This selects STM32 SoC glue layer support for the stmmac
163 device driver. This driver is used on for the STM32 series
164 SOCs GMAC ethernet controller.
167 tristate "Allwinner GMAC support"
169 depends on OF && (ARCH_SUNXI || COMPILE_TEST)
171 Support for Allwinner A20/A31 GMAC ethernet controllers.
173 This selects Allwinner SoC glue layer support for the
174 stmmac device driver. This driver is used for A20/A31
175 GMAC ethernet controller.
178 tristate "Allwinner sun8i GMAC support"
180 depends on OF && (ARCH_SUNXI || COMPILE_TEST)
183 Support for Allwinner H3 A83T A64 EMAC ethernet controllers.
185 This selects Allwinner SoC glue layer support for the
186 stmmac device driver. This driver is used for H3/A83T/A64
187 EMAC ethernet controller.
191 tristate "STMMAC PCI bus support"
192 depends on STMMAC_ETH && PCI
194 This selects the platform specific bus support for the stmmac driver.
195 This driver was tested on XLINX XC2V3000 FF1152AMT0221
196 D1215994A VIRTEX FPGA board and SNPS QoS IPK Prototyping Kit.
198 If you have a controller with this interface, say Y or M here.