0076f770e637d922f620cb7c9774fbeb2798f226
[cascardo/linux.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 NET_CORE
5         select MII
6         select PHYLIB
7         select CRC32
8         ---help---
9           This is the driver for the Ethernet IPs are built around a
10           Synopsys IP Core and only tested on the STMicroelectronics
11           platforms.
12
13 if STMMAC_ETH
14
15 config STMMAC_PLATFORM
16         bool "STMMAC Platform bus support"
17         depends on STMMAC_ETH
18         ---help---
19           This selects the platform specific bus support for
20           the stmmac device driver. This is the driver used
21           on many embedded STM platforms based on ARM and SuperH
22           processors.
23           If you have a controller with this interface, say Y or M here.
24
25           If unsure, say N.
26
27 config STMMAC_PCI
28         bool "STMMAC PCI bus support (EXPERIMENTAL)"
29         depends on STMMAC_ETH && PCI && EXPERIMENTAL
30         ---help---
31           This is to select the Synopsys DWMAC available on PCI devices,
32           if you have a controller with this interface, say Y or M here.
33
34           This PCI support is tested on XLINX XC2V3000 FF1152AMT0221
35           D1215994A VIRTEX FPGA board.
36
37           If unsure, say N.
38
39 config STMMAC_DEBUG_FS
40         bool "Enable monitoring via sysFS "
41         default n
42         depends on STMMAC_ETH && DEBUG_FS
43         ---help---
44           The stmmac entry in /sys reports DMA TX/RX rings
45           or (if supported) the HW cap register.
46
47 config STMMAC_DA
48         bool "STMMAC DMA arbitration scheme"
49         default n
50         ---help---
51           Selecting this option, rx has priority over Tx (only for Giga
52           Ethernet device).
53           By default, the DMA arbitration scheme is based on Round-robin
54           (rx:tx priority is 1:1).
55
56 config STMMAC_TIMER
57         bool "STMMAC Timer optimisation"
58         default n
59         depends on RTC_HCTOSYS_DEVICE
60         ---help---
61           Use an external timer for mitigating the number of network
62           interrupts. Currently, for SH architectures, it is possible
63           to use the TMU channel 2 and the SH-RTC device.
64
65 choice
66         prompt "Select Timer device"
67         depends on STMMAC_TIMER
68
69 config STMMAC_TMU_TIMER
70         bool "TMU channel 2"
71         depends on CPU_SH4
72         ---help---
73
74 config STMMAC_RTC_TIMER
75         bool "Real time clock"
76         depends on RTC_CLASS
77         ---help---
78
79 endchoice
80
81 choice
82         prompt "Select the DMA TX/RX descriptor operating modes"
83         depends on STMMAC_ETH
84         ---help---
85           This driver supports DMA descriptor to operate both in dual buffer
86           (RING) and linked-list(CHAINED) mode. In RING mode each descriptor
87           points to two data buffer pointers whereas in CHAINED mode they
88           points to only one data buffer pointer.
89
90 config STMMAC_RING
91         bool "Enable Descriptor Ring Mode"
92
93 config STMMAC_CHAINED
94         bool "Enable Descriptor Chained Mode"
95
96 endchoice
97
98
99 endif