xref: /rk3399_rockchip-uboot/drivers/net/Kconfig (revision 894688431927c1b73c64860c8aa71463c2593ea2)
1source "drivers/net/phy/Kconfig"
2
3config DM_ETH
4	bool "Enable Driver Model for Ethernet drivers"
5	depends on DM
6	help
7	  Enable driver model for Ethernet.
8
9	  The eth_*() interface will be implemented by the UC_ETH class
10	  This is currently implemented in net/eth.c
11	  Look in include/net.h for details.
12
13config DM_MDIO
14	bool "Enable Driver Model for MDIO devices"
15	depends on DM_ETH && PHYLIB
16	help
17	  Enable driver model for MDIO devices
18
19	  Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as
20	  stand-alone devices.  Useful in particular for systems that support
21	  DM_ETH and have a stand-alone MDIO hardware block shared by multiple
22	  Ethernet interfaces.
23	  This is currently implemented in net/mdio-uclass.c
24	  Look in include/miiphy.h for details.
25
26config DM_ETH_PHY
27	bool "Enable Driver Model for Ethernet Generic PHY drivers"
28	depends on DM
29	help
30	  Enable driver model for Ethernet Generic PHY .
31
32menuconfig NETDEVICES
33	bool "Network device support"
34	depends on NET
35	default y if DM_ETH
36	help
37	  You must select Y to enable any network device support
38	  Generally if you have any networking support this is a given
39
40	  If unsure, say Y
41
42if NETDEVICES
43
44config PHY_GIGE
45	bool "Enable GbE PHY status parsing and configuration"
46	help
47	  Enables support for parsing the status output and for
48	  configuring GbE PHYs (affects the inner workings of some
49	  commands and miiphyutil.c).
50
51config AG7XXX
52	bool "Atheros AG7xxx Ethernet MAC support"
53	depends on DM_ETH && ARCH_ATH79
54	select PHYLIB
55	help
56	  This driver supports the Atheros AG7xxx Ethernet MAC. This MAC is
57	  present in the Atheros AR7xxx, AR9xxx and QCA9xxx MIPS chips.
58
59
60config ALTERA_TSE
61	bool "Altera Triple-Speed Ethernet MAC support"
62	depends on DM_ETH
63	select PHYLIB
64	help
65	  This driver supports the Altera Triple-Speed (TSE) Ethernet MAC.
66	  Please find details on the "Triple-Speed Ethernet MegaCore Function
67	  Resource Center" of Altera.
68
69config BCM_SF2_ETH
70	bool "Broadcom SF2 (Starfighter2) Ethernet support"
71	select PHYLIB
72	help
73	  This is an abstract framework which provides a generic interface
74	  to MAC and DMA management for multiple Broadcom SoCs such as
75	  Cygnus, NSP and bcm28155_ap platforms.
76
77config BCM_SF2_ETH_DEFAULT_PORT
78	int "Broadcom SF2 (Starfighter2) Ethernet default port number"
79	depends on BCM_SF2_ETH
80	default 0
81	help
82	  Default port number for the Starfighter2 ethernet driver.
83
84config BCM_SF2_ETH_GMAC
85	bool "Broadcom SF2 (Starfighter2) GMAC Ethernet support"
86	depends on BCM_SF2_ETH
87	help
88	  This flag enables the ethernet support for Broadcom platforms with
89	  GMAC such as Cygnus. This driver is based on the framework provided
90	  by the BCM_SF2_ETH driver.
91	  Say Y to any bcmcygnus based platforms.
92
93config DWC_ETH_QOS
94	bool "Synopsys DWC Ethernet QOS device support"
95	depends on DM_ETH
96	select PHYLIB
97	help
98	  This driver supports the Synopsys Designware Ethernet QOS (Quality
99	  Of Service) IP block. The IP supports many options for bus type,
100	  clocking/reset structure, and feature list. This driver currently
101	  supports the specific configuration used in NVIDIA's Tegra186 chip,
102	  but should be extensible to other combinations quite easily.
103
104config E1000
105	bool "Intel PRO/1000 Gigabit Ethernet support"
106	help
107	  This driver supports Intel(R) PRO/1000 gigabit ethernet family of
108	  adapters.  For more information on how to identify your adapter, go
109	  to the Adapter & Driver ID Guide at:
110
111	  <http://support.intel.com/support/network/adapter/pro100/21397.htm>
112
113config E1000_SPI_GENERIC
114	bool "Allow access to the Intel 8257x SPI bus"
115	depends on E1000
116	help
117	  Allow generic access to the SPI bus on the Intel 8257x, for
118	  example with the "sspi" command.
119
120config E1000_SPI
121	bool "Enable SPI bus utility code"
122	depends on E1000
123	help
124	  Utility code for direct access to the SPI bus on Intel 8257x.
125	  This does not do anything useful unless you set at least one
126	  of CONFIG_CMD_E1000 or CONFIG_E1000_SPI_GENERIC.
127
128config CMD_E1000
129	bool "Enable the e1000 command"
130	depends on E1000
131	help
132	  This enables the 'e1000' management command for E1000 devices. When
133	  used on devices with SPI support you can reprogram the EEPROM from
134	  U-Boot.
135
136config ETH_SANDBOX
137	depends on DM_ETH && SANDBOX
138	default y
139	bool "Sandbox: Mocked Ethernet driver"
140	help
141	  This driver simply responds with fake ARP replies and ping
142	  replies that are used to verify network stack functionality
143
144	  This driver is particularly useful in the test/dm/eth.c tests
145
146config ETH_SANDBOX_RAW
147	depends on DM_ETH && SANDBOX
148	default y
149	bool "Sandbox: Bridge to Linux Raw Sockets"
150	help
151	  This driver is a bridge from the bottom of the network stack
152	  in U-Boot to the RAW AF_PACKET API in Linux. This allows real
153	  network traffic to be tested from within sandbox. See
154	  board/sandbox/README.sandbox for more details.
155
156config ETH_DESIGNWARE
157	bool "Synopsys Designware Ethernet MAC"
158	select PHYLIB
159	help
160	  This MAC is present in SoCs from various vendors. It supports
161	  100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
162	  provide the PHY (physical media interface).
163
164config ETHOC
165	bool "OpenCores 10/100 Mbps Ethernet MAC"
166	help
167	  This MAC is present in OpenRISC and Xtensa XTFPGA boards.
168
169config FEC_MXC
170	bool "FEC Ethernet controller"
171	depends on MX5 || MX6
172	help
173	  This driver supports the 10/100 Fast Ethernet controller for
174	  NXP i.MX processors.
175
176config FTMAC100
177	bool "Ftmac100 Ethernet Support"
178	help
179	  This MAC is present in Andestech SoCs.
180
181config MVPP2
182	bool "Marvell Armada 375/7K/8K network interface support"
183	depends on ARMADA_375 || ARMADA_8K
184	select PHYLIB
185	help
186	  This driver supports the network interface units in the
187	  Marvell ARMADA 375, 7K and 8K SoCs.
188
189config MACB
190	bool "Cadence MACB/GEM Ethernet Interface"
191	depends on DM_ETH
192	select PHYLIB
193	help
194	  The Cadence MACB ethernet interface is found on many Atmel
195	  AT91 and SAMA5 parts.  This driver also supports the Cadence
196	  GEM (Gigabit Ethernet MAC) found in some ARM SoC devices.
197	  Say Y to include support for the MACB/GEM chip.
198
199config PCH_GBE
200	bool "Intel Platform Controller Hub EG20T GMAC driver"
201	depends on DM_ETH && DM_PCI
202	select PHYLIB
203	help
204	  This MAC is present in Intel Platform Controller Hub EG20T. It
205	  supports 10/100/1000 Mbps operation.
206
207config RGMII
208	bool "Enable RGMII"
209	help
210	  Enable the support of the Reduced Gigabit Media-Independent
211	  Interface (RGMII).
212
213config RTL8139
214	bool "Realtek 8139 series Ethernet controller driver"
215	help
216	  This driver supports Realtek 8139 series fast ethernet family of
217	  PCI chipsets/adapters.
218
219config RTL8169
220	bool "Realtek 8169 series Ethernet controller driver"
221	help
222	  This driver supports Realtek 8169 series gigabit ethernet family of
223	  PCI/PCIe chipsets/adapters.
224
225config SUN7I_GMAC
226	bool "Enable Allwinner GMAC Ethernet support"
227	help
228	  Enable the support for Sun7i GMAC Ethernet controller
229
230config SUN4I_EMAC
231	bool "Allwinner Sun4i Ethernet MAC support"
232	depends on DM_ETH
233	help
234	  This driver supports the Allwinner based SUN4I Ethernet MAC.
235
236config SUN8I_EMAC
237        bool "Allwinner Sun8i Ethernet MAC support"
238        depends on DM_ETH
239        select PHYLIB
240	select PHY_GIGE
241        help
242          This driver supports the  Allwinner based SUN8I/SUN50I Ethernet MAC.
243	  It can be found in H3/A64/A83T based SoCs and compatible with both
244	  External and Internal PHYs.
245
246config XILINX_AXIEMAC
247	depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP)
248	select PHYLIB
249	select MII
250	bool "Xilinx AXI Ethernet"
251	help
252	  This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
253
254config XILINX_EMACLITE
255	depends on DM_ETH && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || MIPS)
256	select PHYLIB
257	select MII
258	bool "Xilinx Ethernetlite"
259	help
260	  This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
261
262config ZYNQ_GEM
263	depends on DM_ETH && (ARCH_ZYNQ || ARCH_ZYNQMP)
264	select PHYLIB
265	bool "Xilinx Ethernet GEM"
266	help
267	  This MAC is present in Xilinx Zynq and ZynqMP SoCs.
268
269config PIC32_ETH
270	bool "Microchip PIC32 Ethernet Support"
271	depends on DM_ETH && MACH_PIC32
272	select PHYLIB
273	help
274	  This driver implements 10/100 Mbps Ethernet and MAC layer for
275	  Microchip PIC32 microcontrollers.
276
277config GMAC_ROCKCHIP
278	bool "Rockchip Synopsys Designware Ethernet MAC"
279	depends on DM_ETH && (ETH_DESIGNWARE || DWC_ETH_QOS)
280	help
281	  This driver provides Rockchip SoCs network support based on the
282	  Synopsys Designware driver.
283
284config RENESAS_RAVB
285	bool "Renesas Ethernet AVB MAC"
286	depends on DM_ETH && RCAR_GEN3
287	select PHYLIB
288	help
289	  This driver implements support for the Ethernet AVB block in
290	  Renesas M3 and H3 SoCs.
291
292config MPC8XX_FEC
293	bool "Fast Ethernet Controller on MPC8XX"
294	depends on MPC8xx
295	select MII
296	help
297	  This driver implements support for the Fast Ethernet Controller
298	  on MPC8XX
299
300config ETHER_ON_FEC1
301	bool "FEC1"
302	depends on MPC8XX_FEC
303	default y
304
305config FEC1_PHY
306	int "FEC1 PHY"
307	depends on ETHER_ON_FEC1
308	default -1
309	help
310	  Define to the hardcoded PHY address which corresponds
311	  to the given FEC; i. e.
312		#define CONFIG_FEC1_PHY 4
313	  means that the PHY with address 4 is connected to FEC1
314
315	  When set to -1, means to probe for first available.
316
317config PHY_NORXERR
318	bool "PHY_NORXERR"
319	depends on ETHER_ON_FEC1
320	default n
321	help
322	  The PHY does not have a RXERR line (RMII only).
323	  (so program the FEC to ignore it).
324
325config ETHER_ON_FEC2
326	bool "FEC2"
327	depends on MPC8XX_FEC && MPC885
328	default y
329
330config FEC2_PHY
331	int "FEC2 PHY"
332	depends on ETHER_ON_FEC2
333	default -1
334	help
335	  Define to the hardcoded PHY address which corresponds
336	  to the given FEC; i. e.
337		#define CONFIG_FEC1_PHY 4
338	  means that the PHY with address 4 is connected to FEC1
339
340	  When set to -1, means to probe for first available.
341
342config FEC2_PHY_NORXERR
343	bool "PHY_NORXERR"
344	depends on ETHER_ON_FEC2
345	default n
346	help
347	  The PHY does not have a RXERR line (RMII only).
348	  (so program the FEC to ignore it).
349
350endif # NETDEVICES
351