Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 1 | config STMMAC_ETH |
| 2 | tristate "STMicroelectronics 10/100/1000 Ethernet driver" |
Jeff Kirsher | 7ac6653 | 2011-05-16 00:05:19 -0700 | [diff] [blame] | 3 | depends on HAS_IOMEM |
Jeff Kirsher | aaba215 | 2011-09-14 21:23:14 +0000 | [diff] [blame] | 4 | select NET_CORE |
Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 5 | select MII |
| 6 | select PHYLIB |
Carmelo AMOROSO | 7ba8a9b | 2010-03-31 21:44:03 +0000 | [diff] [blame] | 7 | select CRC32 |
Jeff Kirsher | 7ac6653 | 2011-05-16 00:05:19 -0700 | [diff] [blame] | 8 | ---help--- |
Giuseppe CAVALLARO | 7187c1a | 2010-01-06 23:07:22 +0000 | [diff] [blame] | 9 | This is the driver for the Ethernet IPs are built around a |
Giuseppe CAVALLARO | ac75791 | 2010-08-23 20:40:41 +0000 | [diff] [blame] | 10 | Synopsys IP Core and only tested on the STMicroelectronics |
Giuseppe CAVALLARO | 7187c1a | 2010-01-06 23:07:22 +0000 | [diff] [blame] | 11 | platforms. |
Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 12 | |
| 13 | if STMMAC_ETH |
| 14 | |
Giuseppe CAVALLARO | bfab27a | 2011-12-21 03:58:19 +0000 | [diff] [blame] | 15 | config STMMAC_PLATFORM |
Giuseppe CAVALLARO | ba27ec6 | 2012-06-04 19:22:57 +0000 | [diff] [blame] | 16 | bool "STMMAC Platform bus support" |
Giuseppe CAVALLARO | bfab27a | 2011-12-21 03:58:19 +0000 | [diff] [blame] | 17 | depends on STMMAC_ETH |
Giuseppe CAVALLARO | 33d5e33 | 2012-06-07 19:25:07 +0000 | [diff] [blame] | 18 | default y |
Giuseppe CAVALLARO | bfab27a | 2011-12-21 03:58:19 +0000 | [diff] [blame] | 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 | |
| 28 | config STMMAC_PCI |
Kees Cook | 6e1215a | 2013-01-22 10:30:30 -0800 | [diff] [blame^] | 29 | bool "STMMAC PCI bus support" |
| 30 | depends on STMMAC_ETH && PCI |
Giuseppe CAVALLARO | bfab27a | 2011-12-21 03:58:19 +0000 | [diff] [blame] | 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 CAVALLARO | 7ac2905 | 2011-09-01 21:51:39 +0000 | [diff] [blame] | 40 | config STMMAC_DEBUG_FS |
| 41 | bool "Enable monitoring via sysFS " |
| 42 | default n |
| 43 | depends on STMMAC_ETH && DEBUG_FS |
Giuseppe CAVALLARO | bfab27a | 2011-12-21 03:58:19 +0000 | [diff] [blame] | 44 | ---help--- |
Giuseppe CAVALLARO | e743482 | 2011-09-01 21:51:41 +0000 | [diff] [blame] | 45 | The stmmac entry in /sys reports DMA TX/RX rings |
| 46 | or (if supported) the HW cap register. |
Giuseppe CAVALLARO | 7ac2905 | 2011-09-01 21:51:39 +0000 | [diff] [blame] | 47 | |
Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 48 | config STMMAC_DA |
| 49 | bool "STMMAC DMA arbitration scheme" |
| 50 | default n |
Jeff Kirsher | 7ac6653 | 2011-05-16 00:05:19 -0700 | [diff] [blame] | 51 | ---help--- |
Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 52 | 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 CAVALLARO | 286a837 | 2011-10-18 00:01:24 +0000 | [diff] [blame] | 57 | choice |
| 58 | prompt "Select the DMA TX/RX descriptor operating modes" |
| 59 | depends on STMMAC_ETH |
| 60 | ---help--- |
| 61 | This driver supports DMA descriptor to operate both in dual buffer |
| 62 | (RING) and linked-list(CHAINED) mode. In RING mode each descriptor |
| 63 | points to two data buffer pointers whereas in CHAINED mode they |
| 64 | points to only one data buffer pointer. |
| 65 | |
| 66 | config STMMAC_RING |
| 67 | bool "Enable Descriptor Ring Mode" |
| 68 | |
| 69 | config STMMAC_CHAINED |
| 70 | bool "Enable Descriptor Chained Mode" |
| 71 | |
| 72 | endchoice |
| 73 | |
| 74 | |
Giuseppe Cavallaro | 47dd7a5 | 2009-10-14 15:13:45 -0700 | [diff] [blame] | 75 | endif |