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