blob: cda61e37c357b817ccf17399b0475caf03ad6a98 [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
14config STMMAC_DA
15 bool "STMMAC DMA arbitration scheme"
16 default n
Jeff Kirsher7ac66532011-05-16 00:05:19 -070017 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070018 Selecting this option, rx has priority over Tx (only for Giga
19 Ethernet device).
20 By default, the DMA arbitration scheme is based on Round-robin
21 (rx:tx priority is 1:1).
22
23config STMMAC_DUAL_MAC
24 bool "STMMAC: dual mac support (EXPERIMENTAL)"
25 default n
26 depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
Jeff Kirsher7ac66532011-05-16 00:05:19 -070027 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070028 Some ST SoCs (for example the stx7141 and stx7200c2) have two
29 Ethernet Controllers. This option turns on the second Ethernet
30 device on this kind of platforms.
31
32config STMMAC_TIMER
33 bool "STMMAC Timer optimisation"
34 default n
David S. Miller250ad8f2010-08-26 20:32:02 -070035 depends on RTC_HCTOSYS_DEVICE
Jeff Kirsher7ac66532011-05-16 00:05:19 -070036 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070037 Use an external timer for mitigating the number of network
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000038 interrupts. Currently, for SH architectures, it is possible
39 to use the TMU channel 2 and the SH-RTC device.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070040
41choice
42 prompt "Select Timer device"
43 depends on STMMAC_TIMER
44
45config STMMAC_TMU_TIMER
46 bool "TMU channel 2"
47 depends on CPU_SH4
Jeff Kirsher7ac66532011-05-16 00:05:19 -070048 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070049
50config STMMAC_RTC_TIMER
51 bool "Real time clock"
52 depends on RTC_CLASS
Jeff Kirsher7ac66532011-05-16 00:05:19 -070053 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070054
55endchoice
56
57endif