aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-05-16 03:05:19 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-11 19:29:01 -0400
commit7ac6653a085b41405758bc16b2525db56ee0a23f (patch)
tree1a3fc878f338778dd8a9ee8b06dab899a4ec5a87
parentef7f54297df683665145859501f63c801f6c7ea8 (diff)
stmmac: Move the STMicroelectronics driver
Move the STMicroelectronics driver into driver/net/ethernet/stmicro/ and make the necessary Kconfig and Makefile changes. CC: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--MAINTAINERS2
-rw-r--r--drivers/net/Kconfig2
-rw-r--r--drivers/net/Makefile1
-rw-r--r--drivers/net/ethernet/Kconfig1
-rw-r--r--drivers/net/ethernet/Makefile1
-rw-r--r--drivers/net/ethernet/stmicro/Kconfig22
-rw-r--r--drivers/net/ethernet/stmicro/Makefile5
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/Kconfig (renamed from drivers/net/stmmac/Kconfig)14
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/Makefile (renamed from drivers/net/stmmac/Makefile)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h (renamed from drivers/net/stmmac/common.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/descs.h (renamed from drivers/net/stmmac/descs.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac100.h (renamed from drivers/net/stmmac/dwmac100.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac1000.h (renamed from drivers/net/stmmac/dwmac1000.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c (renamed from drivers/net/stmmac/dwmac1000_core.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c (renamed from drivers/net/stmmac/dwmac1000_dma.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c (renamed from drivers/net/stmmac/dwmac100_core.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c (renamed from drivers/net/stmmac/dwmac100_dma.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h (renamed from drivers/net/stmmac/dwmac_dma.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c (renamed from drivers/net/stmmac/dwmac_lib.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/enh_desc.c (renamed from drivers/net/stmmac/enh_desc.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/norm_desc.c (renamed from drivers/net/stmmac/norm_desc.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac.h (renamed from drivers/net/stmmac/stmmac.h)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (renamed from drivers/net/stmmac/stmmac_ethtool.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c (renamed from drivers/net/stmmac/stmmac_main.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c (renamed from drivers/net/stmmac/stmmac_mdio.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c (renamed from drivers/net/stmmac/stmmac_timer.c)0
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_timer.h (renamed from drivers/net/stmmac/stmmac_timer.h)0
27 files changed, 37 insertions, 11 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index c789b6fbdd90..5dffc8ed4af6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2029,7 +2029,7 @@ M: Giuseppe Cavallaro <peppe.cavallaro@st.com>
2029L: netdev@vger.kernel.org 2029L: netdev@vger.kernel.org
2030W: http://www.stlinux.com 2030W: http://www.stlinux.com
2031S: Supported 2031S: Supported
2032F: drivers/net/stmmac/ 2032F: drivers/net/ethernet/stmicro/stmmac/
2033 2033
2034CYBERPRO FB DRIVER 2034CYBERPRO FB DRIVER
2035M: Russell King <linux@arm.linux.org.uk> 2035M: Russell King <linux@arm.linux.org.uk>
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index d3d2febeda17..a7ec50f197fc 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1406,8 +1406,6 @@ config S6GMAC
1406 To compile this driver as a module, choose M here. The module 1406 To compile this driver as a module, choose M here. The module
1407 will be called s6gmac. 1407 will be called s6gmac.
1408 1408
1409source "drivers/net/stmmac/Kconfig"
1410
1411config PCH_GBE 1409config PCH_GBE
1412 tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE" 1410 tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE"
1413 depends on PCI 1411 depends on PCI
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 8d2d677da2ee..b54e308fc19b 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -67,7 +67,6 @@ obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
67obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o 67obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
68obj-$(CONFIG_RIONET) += rionet.o 68obj-$(CONFIG_RIONET) += rionet.o
69obj-$(CONFIG_SH_ETH) += sh_eth.o 69obj-$(CONFIG_SH_ETH) += sh_eth.o
70obj-$(CONFIG_STMMAC_ETH) += stmmac/
71 70
72# 71#
73# end link order section 72# end link order section
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig
index 8375b8b5dd73..c38e9026fe07 100644
--- a/drivers/net/ethernet/Kconfig
+++ b/drivers/net/ethernet/Kconfig
@@ -30,6 +30,7 @@ source "drivers/net/ethernet/qlogic/Kconfig"
30source "drivers/net/ethernet/racal/Kconfig" 30source "drivers/net/ethernet/racal/Kconfig"
31source "drivers/net/ethernet/sfc/Kconfig" 31source "drivers/net/ethernet/sfc/Kconfig"
32source "drivers/net/ethernet/smsc/Kconfig" 32source "drivers/net/ethernet/smsc/Kconfig"
33source "drivers/net/ethernet/stmicro/Kconfig"
33source "drivers/net/ethernet/sun/Kconfig" 34source "drivers/net/ethernet/sun/Kconfig"
34source "drivers/net/ethernet/tehuti/Kconfig" 35source "drivers/net/ethernet/tehuti/Kconfig"
35 36
diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
index 26324a115905..75d7a0280c53 100644
--- a/drivers/net/ethernet/Makefile
+++ b/drivers/net/ethernet/Makefile
@@ -21,5 +21,6 @@ obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/
21obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ 21obj-$(CONFIG_NET_VENDOR_RACAL) += racal/
22obj-$(CONFIG_SFC) += sfc/ 22obj-$(CONFIG_SFC) += sfc/
23obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/ 23obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
24obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/
24obj-$(CONFIG_NET_VENDOR_SUN) += sun/ 25obj-$(CONFIG_NET_VENDOR_SUN) += sun/
25obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/ 26obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/
diff --git a/drivers/net/ethernet/stmicro/Kconfig b/drivers/net/ethernet/stmicro/Kconfig
new file mode 100644
index 000000000000..e40df6433860
--- /dev/null
+++ b/drivers/net/ethernet/stmicro/Kconfig
@@ -0,0 +1,22 @@
1#
2# STMicroelectronics device configuration
3#
4
5config NET_VENDOR_STMICRO
6 bool "STMicroelectronics devices"
7 depends on HAS_IOMEM
8 ---help---
9 If you have a network (Ethernet) card belonging to this class, say Y
10 and read the Ethernet-HOWTO, available from
11 <http://www.tldp.org/docs.html#howto>.
12
13 Note that the answer to this question doesn't directly affect the
14 kernel: saying N will just cause the configurator to skip all
15 the questions about STMicroelectronics cards. If you say Y, you will
16 be asked for your specific card in the following questions.
17
18if NET_VENDOR_STMICRO
19
20source "drivers/net/ethernet/stmicro/stmmac/Kconfig"
21
22endif # NET_VENDOR_STMICRO
diff --git a/drivers/net/ethernet/stmicro/Makefile b/drivers/net/ethernet/stmicro/Makefile
new file mode 100644
index 000000000000..9b3bfddda7dd
--- /dev/null
+++ b/drivers/net/ethernet/stmicro/Makefile
@@ -0,0 +1,5 @@
1#
2# Makefile for the STMicroelectronics device drivers.
3#
4
5obj-$(CONFIG_STMMAC_ETH) += stmmac/
diff --git a/drivers/net/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig
index 7df7df4e79c5..cda61e37c357 100644
--- a/drivers/net/stmmac/Kconfig
+++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
@@ -1,10 +1,10 @@
1config STMMAC_ETH 1config STMMAC_ETH
2 tristate "STMicroelectronics 10/100/1000 Ethernet driver" 2 tristate "STMicroelectronics 10/100/1000 Ethernet driver"
3 depends on HAS_IOMEM
3 select MII 4 select MII
4 select PHYLIB 5 select PHYLIB
5 select CRC32 6 select CRC32
6 depends on NETDEVICES && HAS_IOMEM 7 ---help---
7 help
8 This is the driver for the Ethernet IPs are built around a 8 This is the driver for the Ethernet IPs are built around a
9 Synopsys IP Core and only tested on the STMicroelectronics 9 Synopsys IP Core and only tested on the STMicroelectronics
10 platforms. 10 platforms.
@@ -14,7 +14,7 @@ if STMMAC_ETH
14config STMMAC_DA 14config STMMAC_DA
15 bool "STMMAC DMA arbitration scheme" 15 bool "STMMAC DMA arbitration scheme"
16 default n 16 default n
17 help 17 ---help---
18 Selecting this option, rx has priority over Tx (only for Giga 18 Selecting this option, rx has priority over Tx (only for Giga
19 Ethernet device). 19 Ethernet device).
20 By default, the DMA arbitration scheme is based on Round-robin 20 By default, the DMA arbitration scheme is based on Round-robin
@@ -24,7 +24,7 @@ config STMMAC_DUAL_MAC
24 bool "STMMAC: dual mac support (EXPERIMENTAL)" 24 bool "STMMAC: dual mac support (EXPERIMENTAL)"
25 default n 25 default n
26 depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER 26 depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
27 help 27 ---help---
28 Some ST SoCs (for example the stx7141 and stx7200c2) have two 28 Some ST SoCs (for example the stx7141 and stx7200c2) have two
29 Ethernet Controllers. This option turns on the second Ethernet 29 Ethernet Controllers. This option turns on the second Ethernet
30 device on this kind of platforms. 30 device on this kind of platforms.
@@ -33,7 +33,7 @@ config STMMAC_TIMER
33 bool "STMMAC Timer optimisation" 33 bool "STMMAC Timer optimisation"
34 default n 34 default n
35 depends on RTC_HCTOSYS_DEVICE 35 depends on RTC_HCTOSYS_DEVICE
36 help 36 ---help---
37 Use an external timer for mitigating the number of network 37 Use an external timer for mitigating the number of network
38 interrupts. Currently, for SH architectures, it is possible 38 interrupts. Currently, for SH architectures, it is possible
39 to use the TMU channel 2 and the SH-RTC device. 39 to use the TMU channel 2 and the SH-RTC device.
@@ -45,12 +45,12 @@ choice
45config STMMAC_TMU_TIMER 45config STMMAC_TMU_TIMER
46 bool "TMU channel 2" 46 bool "TMU channel 2"
47 depends on CPU_SH4 47 depends on CPU_SH4
48 help 48 ---help---
49 49
50config STMMAC_RTC_TIMER 50config STMMAC_RTC_TIMER
51 bool "Real time clock" 51 bool "Real time clock"
52 depends on RTC_CLASS 52 depends on RTC_CLASS
53 help 53 ---help---
54 54
55endchoice 55endchoice
56 56
diff --git a/drivers/net/stmmac/Makefile b/drivers/net/ethernet/stmicro/stmmac/Makefile
index 9691733ddb8e..9691733ddb8e 100644
--- a/drivers/net/stmmac/Makefile
+++ b/drivers/net/ethernet/stmicro/stmmac/Makefile
diff --git a/drivers/net/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 375ea193e139..375ea193e139 100644
--- a/drivers/net/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
diff --git a/drivers/net/stmmac/descs.h b/drivers/net/ethernet/stmicro/stmmac/descs.h
index 63a03e264694..63a03e264694 100644
--- a/drivers/net/stmmac/descs.h
+++ b/drivers/net/ethernet/stmicro/stmmac/descs.h
diff --git a/drivers/net/stmmac/dwmac100.h b/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
index 7c6d857a9cc7..7c6d857a9cc7 100644
--- a/drivers/net/stmmac/dwmac100.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
diff --git a/drivers/net/stmmac/dwmac1000.h b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
index cfcef0ea0fa5..cfcef0ea0fa5 100644
--- a/drivers/net/stmmac/dwmac1000.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
diff --git a/drivers/net/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
index 0f63b3c83c19..0f63b3c83c19 100644
--- a/drivers/net/stmmac/dwmac1000_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
diff --git a/drivers/net/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
index 3dbeea619085..3dbeea619085 100644
--- a/drivers/net/stmmac/dwmac1000_dma.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
diff --git a/drivers/net/stmmac/dwmac100_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
index 743a58017637..743a58017637 100644
--- a/drivers/net/stmmac/dwmac100_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
diff --git a/drivers/net/stmmac/dwmac100_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c
index 627f656b0f3c..627f656b0f3c 100644
--- a/drivers/net/stmmac/dwmac100_dma.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c
diff --git a/drivers/net/stmmac/dwmac_dma.h b/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
index da3f5ccf83d3..da3f5ccf83d3 100644
--- a/drivers/net/stmmac/dwmac_dma.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
diff --git a/drivers/net/stmmac/dwmac_lib.c b/drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c
index e25093510b0c..e25093510b0c 100644
--- a/drivers/net/stmmac/dwmac_lib.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c
diff --git a/drivers/net/stmmac/enh_desc.c b/drivers/net/ethernet/stmicro/stmmac/enh_desc.c
index e5dfb6a30182..e5dfb6a30182 100644
--- a/drivers/net/stmmac/enh_desc.c
+++ b/drivers/net/ethernet/stmicro/stmmac/enh_desc.c
diff --git a/drivers/net/stmmac/norm_desc.c b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c
index 029c2a2cf524..029c2a2cf524 100644
--- a/drivers/net/stmmac/norm_desc.c
+++ b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c
diff --git a/drivers/net/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index de1929b2641b..de1929b2641b 100644
--- a/drivers/net/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index 7ed8fb6c2117..7ed8fb6c2117 100644
--- a/drivers/net/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index c6e567e04eff..c6e567e04eff 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff --git a/drivers/net/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index 9c3b9d5c3411..9c3b9d5c3411 100644
--- a/drivers/net/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
diff --git a/drivers/net/stmmac/stmmac_timer.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c
index 2a0e1abde7e7..2a0e1abde7e7 100644
--- a/drivers/net/stmmac/stmmac_timer.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c
diff --git a/drivers/net/stmmac/stmmac_timer.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_timer.h
index 6863590d184b..6863590d184b 100644
--- a/drivers/net/stmmac/stmmac_timer.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_timer.h