blob: b02d4a3ffa379666477d69a7625db1fe1e020aa7 [file] [log] [blame]
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -07001config STMMAC_ETH
2 tristate "STMicroelectronics 10/100/1000 Ethernet driver"
Geert Uytterhoevenfd1eb9e2013-05-09 11:04:46 +00003 depends on HAS_IOMEM && HAS_DMA
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -07004 select MII
5 select PHYLIB
Carmelo AMOROSO7ba8a9b2010-03-31 21:44:03 +00006 select CRC32
Rayagond Kokatanur92ba6882013-03-26 04:43:11 +00007 select PTP_1588_CLOCK
Chen-Yu Tsaic5e4ddb2014-01-17 21:24:41 +08008 select RESET_CONTROLLER
Jeff Kirsher7ac66532011-05-16 00:05:19 -07009 ---help---
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000010 This is the driver for the Ethernet IPs are built around a
Giuseppe CAVALLAROac757912010-08-23 20:40:41 +000011 Synopsys IP Core and only tested on the STMicroelectronics
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000012 platforms.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070013
14if STMMAC_ETH
15
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000016config STMMAC_PLATFORM
Giuseppe CAVALLAROba27ec62012-06-04 19:22:57 +000017 bool "STMMAC Platform bus support"
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000018 depends on STMMAC_ETH
Giuseppe CAVALLARO33d5e332012-06-07 19:25:07 +000019 default y
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000020 ---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
Beniamino Galvani0ad5adc2014-09-20 15:29:16 +020029config DWMAC_MESON
30 bool "Amlogic Meson dwmac support"
31 depends on STMMAC_PLATFORM && ARCH_MESON
32 help
33 Support for Ethernet controller on Amlogic Meson SoCs.
34
35 This selects the Amlogic Meson SoC glue layer support for
36 the stmmac device driver. This driver is used for Meson6 and
37 Meson8 SoCs.
38
Dinh Nguyen801d2332014-03-26 22:45:10 -050039config DWMAC_SOCFPGA
40 bool "SOCFPGA dwmac support"
41 depends on STMMAC_PLATFORM && MFD_SYSCON && (ARCH_SOCFPGA || COMPILE_TEST)
42 help
43 Support for ethernet controller on Altera SOCFPGA
44
45 This selects the Altera SOCFPGA SoC glue layer support
46 for the stmmac device driver. This driver is used for
47 arria5 and cyclone5 FPGA SoCs.
48
Chen-Yu Tsaiaf0bd4e2014-01-17 21:24:47 +080049config DWMAC_SUNXI
50 bool "Allwinner GMAC support"
51 depends on STMMAC_PLATFORM && ARCH_SUNXI
52 default y
53 ---help---
54 Support for Allwinner A20/A31 GMAC ethernet controllers.
55
56 This selects Allwinner SoC glue layer support for the
57 stmmac device driver. This driver is used for A20/A31
58 GMAC ethernet controller.
59
Srinivas Kandagatlad15891c2014-02-11 09:59:57 +000060config DWMAC_STI
61 bool "STi GMAC support"
62 depends on STMMAC_PLATFORM && ARCH_STI
63 default y
64 ---help---
65 Support for ethernet controller on STi SOCs.
66
67 This selects STi SoC glue layer support for the stmmac
68 device driver. This driver is used on for the STi series
69 SOCs GMAC ethernet controller.
70
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000071config STMMAC_PCI
Kees Cook6e1215a2013-01-22 10:30:30 -080072 bool "STMMAC PCI bus support"
73 depends on STMMAC_ETH && PCI
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000074 ---help---
75 This is to select the Synopsys DWMAC available on PCI devices,
76 if you have a controller with this interface, say Y or M here.
77
78 This PCI support is tested on XLINX XC2V3000 FF1152AMT0221
79 D1215994A VIRTEX FPGA board.
80
81 If unsure, say N.
82
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000083config STMMAC_DEBUG_FS
84 bool "Enable monitoring via sysFS "
85 default n
86 depends on STMMAC_ETH && DEBUG_FS
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000087 ---help---
Giuseppe CAVALLAROe7434822011-09-01 21:51:41 +000088 The stmmac entry in /sys reports DMA TX/RX rings
89 or (if supported) the HW cap register.
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000090
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070091config STMMAC_DA
92 bool "STMMAC DMA arbitration scheme"
93 default n
Jeff Kirsher7ac66532011-05-16 00:05:19 -070094 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070095 Selecting this option, rx has priority over Tx (only for Giga
96 Ethernet device).
97 By default, the DMA arbitration scheme is based on Round-robin
98 (rx:tx priority is 1:1).
99
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -0700100endif