stmmac: add HW DMA feature register (v3)
[pandora-kernel.git] / drivers / net / ethernet / stmicro / stmmac / Kconfig
1 config STMMAC_ETH
2         tristate "STMicroelectronics 10/100/1000 Ethernet driver"
3         depends on HAS_IOMEM
4         select MII
5         select PHYLIB
6         select CRC32
7         ---help---
8           This is the driver for the Ethernet IPs are built around a
9           Synopsys IP Core and only tested on the STMicroelectronics
10           platforms.
11
12 if STMMAC_ETH
13
14 config STMMAC_DEBUG_FS
15         bool "Enable monitoring via sysFS "
16         default n
17         depends on STMMAC_ETH && DEBUG_FS
18         -- help
19           The stmmac entry in /sys reports DMA TX/RX rings
20           or (if supported) the HW cap register.
21
22 config STMMAC_DA
23         bool "STMMAC DMA arbitration scheme"
24         default n
25         ---help---
26           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
31 config STMMAC_DUAL_MAC
32         bool "STMMAC: dual mac support (EXPERIMENTAL)"
33         default n
34         depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
35         ---help---
36           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
40 config STMMAC_TIMER
41         bool "STMMAC Timer optimisation"
42         default n
43         depends on RTC_HCTOSYS_DEVICE
44         ---help---
45           Use an external timer for mitigating the number of network
46           interrupts. Currently, for SH architectures, it is possible
47           to use the TMU channel 2 and the SH-RTC device.
48
49 choice
50         prompt "Select Timer device"
51         depends on STMMAC_TIMER
52
53 config STMMAC_TMU_TIMER
54         bool "TMU channel 2"
55         depends on CPU_SH4
56         ---help---
57
58 config STMMAC_RTC_TIMER
59         bool "Real time clock"
60         depends on RTC_CLASS
61         ---help---
62
63 endchoice
64
65 endif