treewide: Add SPDX license identifier - Makefile/Kconfig
[linux-2.6-block.git] / drivers / net / ethernet / stmicro / stmmac / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
47dd7a54 2config STMMAC_ETH
ab70e586 3 tristate "STMicroelectronics 10/100/1000/EQOS Ethernet driver"
fd1eb9e6 4 depends on HAS_IOMEM && HAS_DMA
47dd7a54
GC
5 select MII
6 select PHYLIB
7ba8a9b4 7 select CRC32
d1cbfd77 8 imply PTP_1588_CLOCK
c5e4ddbd 9 select RESET_CONTROLLER
7ac6653a 10 ---help---
ab70e586 11 This is the driver for the Ethernet IPs built around a
12 Synopsys IP Core.
47dd7a54
GC
13
14if STMMAC_ETH
15
bfab27a1 16config STMMAC_PLATFORM
b2e2f0c7 17 tristate "STMMAC Platform bus support"
bfab27a1 18 depends on STMMAC_ETH
b1c17215 19 select MFD_SYSCON
33d5e332 20 default y
bfab27a1 21 ---help---
c0d54066
GC
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.
25
bfab27a1
GC
26 If you have a controller with this interface, say Y or M here.
27
28 If unsure, say N.
29
ba25020e
JE
30if STMMAC_PLATFORM
31
d8256121 32config DWMAC_DWC_QOS_ETH
33 tristate "Support for snps,dwc-qos-ethernet.txt DT binding."
34 select PHYLIB
35 select CRC32
36 select MII
f7b9e8e1 37 depends on OF && HAS_DMA
d8256121 38 help
39 Support for chips using the snps,dwc-qos-ethernet.txt DT binding.
40
ba25020e
JE
41config DWMAC_GENERIC
42 tristate "Generic driver for DWMAC"
43 default STMMAC_PLATFORM
44 ---help---
45 Generic DWMAC driver for platforms that don't require any
46 platform specific code to function or is using platform
47 data for setup.
48
2d1611af
AG
49config DWMAC_ANARION
50 tristate "Adaptrum Anarion GMAC support"
51 default ARC
52 depends on OF && (ARC || COMPILE_TEST)
53 help
54 Support for Adaptrum Anarion GMAC Ethernet controller.
55
56 This selects the Anarion SoC glue layer support for the stmmac driver.
57
b1c17215
MO
58config DWMAC_IPQ806X
59 tristate "QCA IPQ806x DWMAC support"
60 default ARCH_QCOM
f7b9e8e1 61 depends on OF && (ARCH_QCOM || COMPILE_TEST)
b1c17215
MO
62 select MFD_SYSCON
63 help
64 Support for QCA IPQ806X DWMAC Ethernet.
65
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.
70
69bdd2d4
JE
71config DWMAC_LPC18XX
72 tristate "NXP LPC18xx/43xx DWMAC support"
73 default ARCH_LPC18XX
2e280c18 74 depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
69bdd2d4
JE
75 select MFD_SYSCON
76 ---help---
77 Support for NXP LPC18xx/43xx DWMAC Ethernet.
78
9992f37e
BH
79config DWMAC_MEDIATEK
80 tristate "MediaTek MT27xx GMAC support"
81 depends on OF && (ARCH_MEDIATEK || COMPILE_TEST)
82 help
83 Support for MediaTek GMAC Ethernet controller.
84
85 This selects the MT2712 SoC support for the stmmac driver.
86
40e6b0ba
JE
87config DWMAC_MESON
88 tristate "Amlogic Meson dwmac support"
89 default ARCH_MESON
566e8251 90 depends on OF && COMMON_CLK && (ARCH_MESON || COMPILE_TEST)
40e6b0ba
JE
91 help
92 Support for Ethernet controller on Amlogic Meson SoCs.
93
94 This selects the Amlogic Meson SoC glue layer support for
566e8251
MB
95 the stmmac device driver. This driver is used for Meson6,
96 Meson8, Meson8b and GXBB SoCs.
40e6b0ba 97
5ed74140
NA
98config DWMAC_OXNAS
99 tristate "Oxford Semiconductor OXNAS dwmac support"
100 default ARCH_OXNAS
101 depends on OF && COMMON_CLK && (ARCH_OXNAS || COMPILE_TEST)
102 select MFD_SYSCON
103 help
104 Support for Ethernet controller on Oxford Semiconductor OXNAS SoCs.
105
106 This selects the Oxford Semiconductor OXNASSoC glue layer support for
107 the stmmac device driver. This driver is used for OX820.
108
a7c30e62
VK
109config DWMAC_QCOM_ETHQOS
110 tristate "Qualcomm ETHQOS support"
111 default ARCH_QCOM
112 depends on OF && (ARCH_QCOM || COMPILE_TEST)
113 help
114 Support for the Qualcomm ETHQOS core.
115
116 This selects the Qualcomm ETHQOS glue layer support for the
117 stmmac device driver.
118
e0fb4013
JE
119config DWMAC_ROCKCHIP
120 tristate "Rockchip dwmac support"
121 default ARCH_ROCKCHIP
f7b9e8e1 122 depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
e0fb4013
JE
123 select MFD_SYSCON
124 help
125 Support for Ethernet controller on Rockchip RK3288 SoC.
126
127 This selects the Rockchip RK3288 SoC glue layer support for
128 the stmmac device driver.
129
c7c52ae7
JE
130config DWMAC_SOCFPGA
131 tristate "SOCFPGA dwmac support"
c305660b 132 default (ARCH_SOCFPGA || ARCH_STRATIX10)
bc8a2d9b 133 depends on OF && (ARCH_SOCFPGA || ARCH_STRATIX10 || COMPILE_TEST)
c7c52ae7
JE
134 select MFD_SYSCON
135 help
136 Support for ethernet controller on Altera SOCFPGA
137
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.
141
2a321798
JE
142config DWMAC_STI
143 tristate "STi GMAC support"
144 default ARCH_STI
f7b9e8e1 145 depends on OF && (ARCH_STI || COMPILE_TEST)
2a321798
JE
146 select MFD_SYSCON
147 ---help---
148 Support for ethernet controller on STi SOCs.
149
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.
153
c6eec6f3
AT
154config DWMAC_STM32
155 tristate "STM32 DWMAC support"
156 default ARCH_STM32
6bc5445c 157 depends on OF && HAS_IOMEM && (ARCH_STM32 || COMPILE_TEST)
c6eec6f3
AT
158 select MFD_SYSCON
159 ---help---
160 Support for ethernet controller on STM32 SOCs.
161
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.
165
4198b7db
JE
166config DWMAC_SUNXI
167 tristate "Allwinner GMAC support"
168 default ARCH_SUNXI
f7b9e8e1 169 depends on OF && (ARCH_SUNXI || COMPILE_TEST)
4198b7db
JE
170 ---help---
171 Support for Allwinner A20/A31 GMAC ethernet controllers.
172
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.
9f93ac8d
LC
176
177config DWMAC_SUN8I
178 tristate "Allwinner sun8i GMAC support"
179 default ARCH_SUNXI
180 depends on OF && (ARCH_SUNXI || COMPILE_TEST)
634db83b 181 select MDIO_BUS_MUX
9f93ac8d
LC
182 ---help---
183 Support for Allwinner H3 A83T A64 EMAC ethernet controllers.
184
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.
ba25020e
JE
188endif
189
bfab27a1 190config STMMAC_PCI
b2e2f0c7 191 tristate "STMMAC PCI bus support"
6e1215ad 192 depends on STMMAC_ETH && PCI
bfab27a1 193 ---help---
ab70e586 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.
bfab27a1 197
ab70e586 198 If you have a controller with this interface, say Y or M here.
bfab27a1
GC
199
200 If unsure, say N.
47dd7a54 201endif