blob: 2e35be7ccfaeada23702fa16dd9852cae9ea5860 [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
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -07004 select MII
5 select PHYLIB
Carmelo AMOROSO7ba8a9b2010-03-31 21:44:03 +00006 select CRC32
Jeff Kirsher7ac66532011-05-16 00:05:19 -07007 ---help---
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +00008 This is the driver for the Ethernet IPs are built around a
Giuseppe CAVALLAROac757912010-08-23 20:40:41 +00009 Synopsys IP Core and only tested on the STMicroelectronics
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000010 platforms.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070011
12if STMMAC_ETH
13
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000014config STMMAC_DEBUG_FS
15 bool "Enable monitoring via sysFS "
16 default n
17 depends on STMMAC_ETH && DEBUG_FS
18 -- help
Giuseppe CAVALLAROe7434822011-09-01 21:51:41 +000019 The stmmac entry in /sys reports DMA TX/RX rings
20 or (if supported) the HW cap register.
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000021
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070022config STMMAC_DA
23 bool "STMMAC DMA arbitration scheme"
24 default n
Jeff Kirsher7ac66532011-05-16 00:05:19 -070025 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070026 Selecting this option, rx has priority over Tx (only for Giga
27 Ethernet device).
28 By default, the DMA arbitration scheme is based on Round-robin
29 (rx:tx priority is 1:1).
30
31config STMMAC_DUAL_MAC
32 bool "STMMAC: dual mac support (EXPERIMENTAL)"
33 default n
34 depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
Jeff Kirsher7ac66532011-05-16 00:05:19 -070035 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070036 Some ST SoCs (for example the stx7141 and stx7200c2) have two
37 Ethernet Controllers. This option turns on the second Ethernet
38 device on this kind of platforms.
39
40config STMMAC_TIMER
41 bool "STMMAC Timer optimisation"
42 default n
David S. Miller250ad8f2010-08-26 20:32:02 -070043 depends on RTC_HCTOSYS_DEVICE
Jeff Kirsher7ac66532011-05-16 00:05:19 -070044 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070045 Use an external timer for mitigating the number of network
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000046 interrupts. Currently, for SH architectures, it is possible
47 to use the TMU channel 2 and the SH-RTC device.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070048
49choice
50 prompt "Select Timer device"
51 depends on STMMAC_TIMER
52
53config STMMAC_TMU_TIMER
54 bool "TMU channel 2"
55 depends on CPU_SH4
Jeff Kirsher7ac66532011-05-16 00:05:19 -070056 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070057
58config STMMAC_RTC_TIMER
59 bool "Real time clock"
60 depends on RTC_CLASS
Jeff Kirsher7ac66532011-05-16 00:05:19 -070061 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070062
63endchoice
64
65endif