xref: /linux/drivers/net/ethernet/stmicro/stmmac/Kconfig (revision 3932b9ca55b0be314a36d3e84faff3e823c081f5)
1config STMMAC_ETH
2	tristate "STMicroelectronics 10/100/1000 Ethernet driver"
3	depends on HAS_IOMEM && HAS_DMA
4	select MII
5	select PHYLIB
6	select CRC32
7	select PTP_1588_CLOCK
8	select RESET_CONTROLLER
9	---help---
10	  This is the driver for the Ethernet IPs are built around a
11	  Synopsys IP Core and only tested on the STMicroelectronics
12	  platforms.
13
14if STMMAC_ETH
15
16config STMMAC_PLATFORM
17	bool "STMMAC Platform bus support"
18	depends on STMMAC_ETH
19	default y
20	---help---
21	  This selects the platform specific bus support for
22	  the stmmac device driver. This is the driver used
23	  on many embedded STM platforms based on ARM and SuperH
24	  processors.
25	  If you have a controller with this interface, say Y or M here.
26
27	  If unsure, say N.
28
29config DWMAC_SOCFPGA
30	bool "SOCFPGA dwmac support"
31	depends on STMMAC_PLATFORM && MFD_SYSCON && (ARCH_SOCFPGA || COMPILE_TEST)
32	help
33	  Support for ethernet controller on Altera SOCFPGA
34
35	  This selects the Altera SOCFPGA SoC glue layer support
36	  for the stmmac device driver. This driver is used for
37	  arria5 and cyclone5 FPGA SoCs.
38
39config DWMAC_SUNXI
40	bool "Allwinner GMAC support"
41	depends on STMMAC_PLATFORM && ARCH_SUNXI
42	default y
43	---help---
44	  Support for Allwinner A20/A31 GMAC ethernet controllers.
45
46	  This selects Allwinner SoC glue layer support for the
47	  stmmac device driver. This driver is used for A20/A31
48	  GMAC 	  ethernet controller.
49
50config DWMAC_STI
51	bool "STi GMAC support"
52	depends on STMMAC_PLATFORM && ARCH_STI
53	default y
54	---help---
55	  Support for ethernet controller on STi SOCs.
56
57	  This selects STi SoC glue layer support for the stmmac
58	  device driver. This driver is used on for the STi series
59	  SOCs GMAC ethernet controller.
60
61config STMMAC_PCI
62	bool "STMMAC PCI bus support"
63	depends on STMMAC_ETH && PCI
64	---help---
65	  This is to select the Synopsys DWMAC available on PCI devices,
66	  if you have a controller with this interface, say Y or M here.
67
68	  This PCI support is tested on XLINX XC2V3000 FF1152AMT0221
69	  D1215994A VIRTEX FPGA board.
70
71	  If unsure, say N.
72
73config STMMAC_DEBUG_FS
74	bool "Enable monitoring via sysFS "
75	default n
76	depends on STMMAC_ETH && DEBUG_FS
77	---help---
78	  The stmmac entry in /sys reports DMA TX/RX rings
79	  or (if supported) the HW cap register.
80
81config STMMAC_DA
82	bool "STMMAC DMA arbitration scheme"
83	default n
84	---help---
85	  Selecting this option, rx has priority over Tx (only for Giga
86	  Ethernet device).
87	  By default, the DMA arbitration scheme is based on Round-robin
88	  (rx:tx priority is 1:1).
89
90endif
91