blob: 036428348faa3e5b58cd261b9f0ec45e0ad3e4fc [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 CAVALLARObfab27a2011-12-21 03:58:19 +000015config STMMAC_PLATFORM
16 tristate "STMMAC platform bus support"
17 depends on STMMAC_ETH
18 default y
19 ---help---
20 This selects the platform specific bus support for
21 the stmmac device driver. This is the driver used
22 on many embedded STM platforms based on ARM and SuperH
23 processors.
24 If you have a controller with this interface, say Y or M here.
25
26 If unsure, say N.
27
28config STMMAC_PCI
29 tristate "STMMAC support on PCI bus (EXPERIMENTAL)"
30 depends on STMMAC_ETH && PCI && EXPERIMENTAL
31 ---help---
32 This is to select the Synopsys DWMAC available on PCI devices,
33 if you have a controller with this interface, say Y or M here.
34
35 This PCI support is tested on XLINX XC2V3000 FF1152AMT0221
36 D1215994A VIRTEX FPGA board.
37
38 If unsure, say N.
39
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000040config STMMAC_DEBUG_FS
41 bool "Enable monitoring via sysFS "
42 default n
43 depends on STMMAC_ETH && DEBUG_FS
Giuseppe CAVALLARObfab27a2011-12-21 03:58:19 +000044 ---help---
Giuseppe CAVALLAROe7434822011-09-01 21:51:41 +000045 The stmmac entry in /sys reports DMA TX/RX rings
46 or (if supported) the HW cap register.
Giuseppe CAVALLARO7ac29052011-09-01 21:51:39 +000047
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070048config STMMAC_DA
49 bool "STMMAC DMA arbitration scheme"
50 default n
Jeff Kirsher7ac66532011-05-16 00:05:19 -070051 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070052 Selecting this option, rx has priority over Tx (only for Giga
53 Ethernet device).
54 By default, the DMA arbitration scheme is based on Round-robin
55 (rx:tx priority is 1:1).
56
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070057config STMMAC_TIMER
58 bool "STMMAC Timer optimisation"
59 default n
David S. Miller250ad8f2010-08-26 20:32:02 -070060 depends on RTC_HCTOSYS_DEVICE
Jeff Kirsher7ac66532011-05-16 00:05:19 -070061 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070062 Use an external timer for mitigating the number of network
Giuseppe CAVALLARO7187c1a2010-01-06 23:07:22 +000063 interrupts. Currently, for SH architectures, it is possible
64 to use the TMU channel 2 and the SH-RTC device.
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070065
66choice
67 prompt "Select Timer device"
68 depends on STMMAC_TIMER
69
70config STMMAC_TMU_TIMER
71 bool "TMU channel 2"
72 depends on CPU_SH4
Jeff Kirsher7ac66532011-05-16 00:05:19 -070073 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070074
75config STMMAC_RTC_TIMER
76 bool "Real time clock"
77 depends on RTC_CLASS
Jeff Kirsher7ac66532011-05-16 00:05:19 -070078 ---help---
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -070079
80endchoice
81
Giuseppe CAVALLARO286a8372011-10-18 00:01:24 +000082choice
83 prompt "Select the DMA TX/RX descriptor operating modes"
84 depends on STMMAC_ETH
85 ---help---
86 This driver supports DMA descriptor to operate both in dual buffer
87 (RING) and linked-list(CHAINED) mode. In RING mode each descriptor
88 points to two data buffer pointers whereas in CHAINED mode they
89 points to only one data buffer pointer.
90
91config STMMAC_RING
92 bool "Enable Descriptor Ring Mode"
93
94config STMMAC_CHAINED
95 bool "Enable Descriptor Chained Mode"
96
97endchoice
98
99
Giuseppe Cavallaro47dd7a52009-10-14 15:13:45 -0700100endif