blob: ac6f190743dd3227e269d8e05f9df894681e626f [file] [log] [blame]
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -07001config STMMAC_ETH
2 tristate "STMicroelectronics 10/100/1000 Ethernet driver"
Jeff Kirsher7ac66532011-05-16 00:05:19 -07003 depends on HAS_IOMEM
Jeff Kirsheraaba2152011-09-14 21:23:14 +00004 select NET_CORE
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -07005 select MII
6 select PHYLIB
Carmelo AMOROSO7ba8a9b2010-03-31 21:44:03 +00007 select CRC32
Jeff Kirsher7ac66532011-05-16 00:05:19 -07008 ---help---
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +00009 This is the driver for the Ethernet IPs are built around a
Giuseppe CAVALLAROac757912010-08-23 20:40:41 +000010 Synopsys IP Core and only tested on the STMicroelectronics
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000011 platforms.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070012
13if STMMAC_ETH
14
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000015config STMMAC_DEBUG_FS
16 bool "Enable monitoring via sysFS "
17 default n
18 depends on STMMAC_ETH && DEBUG_FS
19 -- help
Giuseppe CAVALLAROe7434822011-09-01 21:51:41 +000020 The stmmac entry in /sys reports DMA TX/RX rings
21 or (if supported) the HW cap register.
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000022
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070023config STMMAC_DA
24 bool "STMMAC DMA arbitration scheme"
25 default n
Jeff Kirsher7ac66532011-05-16 00:05:19 -070026 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070027 Selecting this option, rx has priority over Tx (only for Giga
28 Ethernet device).
29 By default, the DMA arbitration scheme is based on Round-robin
30 (rx:tx priority is 1:1).
31
32config STMMAC_DUAL_MAC
33 bool "STMMAC: dual mac support (EXPERIMENTAL)"
34 default n
35 depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
Jeff Kirsher7ac66532011-05-16 00:05:19 -070036 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070037 Some ST SoCs (for example the stx7141 and stx7200c2) have two
38 Ethernet Controllers. This option turns on the second Ethernet
39 device on this kind of platforms.
40
41config STMMAC_TIMER
42 bool "STMMAC Timer optimisation"
43 default n
David S. Miller250ad8f2010-08-26 20:32:02 -070044 depends on RTC_HCTOSYS_DEVICE
Jeff Kirsher7ac66532011-05-16 00:05:19 -070045 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070046 Use an external timer for mitigating the number of network
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000047 interrupts. Currently, for SH architectures, it is possible
48 to use the TMU channel 2 and the SH-RTC device.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070049
50choice
51 prompt "Select Timer device"
52 depends on STMMAC_TIMER
53
54config STMMAC_TMU_TIMER
55 bool "TMU channel 2"
56 depends on CPU_SH4
Jeff Kirsher7ac66532011-05-16 00:05:19 -070057 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070058
59config STMMAC_RTC_TIMER
60 bool "Real time clock"
61 depends on RTC_CLASS
Jeff Kirsher7ac66532011-05-16 00:05:19 -070062 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070063
64endchoice
65
Giuseppe CAVALLARO286a8372011-10-18 00:01:24 +000066choice
67 prompt "Select the DMA TX/RX descriptor operating modes"
68 depends on STMMAC_ETH
69 ---help---
70 This driver supports DMA descriptor to operate both in dual buffer
71 (RING) and linked-list(CHAINED) mode. In RING mode each descriptor
72 points to two data buffer pointers whereas in CHAINED mode they
73 points to only one data buffer pointer.
74
75config STMMAC_RING
76 bool "Enable Descriptor Ring Mode"
77
78config STMMAC_CHAINED
79 bool "Enable Descriptor Chained Mode"
80
81endchoice
82
83
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070084endif