Skip to content

Commit 7ac6653

Browse files
author
Jeff Kirsher
committed
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 <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent ef7f542 commit 7ac6653

27 files changed

+37
-11
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ M: Giuseppe Cavallaro <[email protected]>
20292029
20302030
W: http://www.stlinux.com
20312031
S: Supported
2032-
F: drivers/net/stmmac/
2032+
F: drivers/net/ethernet/stmicro/stmmac/
20332033

20342034
CYBERPRO FB DRIVER
20352035
M: Russell King <[email protected]>

drivers/net/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,8 +1406,6 @@ config S6GMAC
14061406
To compile this driver as a module, choose M here. The module
14071407
will be called s6gmac.
14081408

1409-
source "drivers/net/stmmac/Kconfig"
1410-
14111409
config PCH_GBE
14121410
tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE"
14131411
depends on PCI

drivers/net/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
6767
obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
6868
obj-$(CONFIG_RIONET) += rionet.o
6969
obj-$(CONFIG_SH_ETH) += sh_eth.o
70-
obj-$(CONFIG_STMMAC_ETH) += stmmac/
7170

7271
#
7372
# end link order section

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ source "drivers/net/ethernet/qlogic/Kconfig"
3030
source "drivers/net/ethernet/racal/Kconfig"
3131
source "drivers/net/ethernet/sfc/Kconfig"
3232
source "drivers/net/ethernet/smsc/Kconfig"
33+
source "drivers/net/ethernet/stmicro/Kconfig"
3334
source "drivers/net/ethernet/sun/Kconfig"
3435
source "drivers/net/ethernet/tehuti/Kconfig"
3536

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/
2121
obj-$(CONFIG_NET_VENDOR_RACAL) += racal/
2222
obj-$(CONFIG_SFC) += sfc/
2323
obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
24+
obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/
2425
obj-$(CONFIG_NET_VENDOR_SUN) += sun/
2526
obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/

drivers/net/ethernet/stmicro/Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# STMicroelectronics device configuration
3+
#
4+
5+
config 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+
18+
if NET_VENDOR_STMICRO
19+
20+
source "drivers/net/ethernet/stmicro/stmmac/Kconfig"
21+
22+
endif # NET_VENDOR_STMICRO

drivers/net/ethernet/stmicro/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the STMicroelectronics device drivers.
3+
#
4+
5+
obj-$(CONFIG_STMMAC_ETH) += stmmac/

drivers/net/stmmac/Kconfig renamed to drivers/net/ethernet/stmicro/stmmac/Kconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
config STMMAC_ETH
22
tristate "STMicroelectronics 10/100/1000 Ethernet driver"
3+
depends on HAS_IOMEM
34
select MII
45
select PHYLIB
56
select CRC32
6-
depends on NETDEVICES && HAS_IOMEM
7-
help
7+
---help---
88
This is the driver for the Ethernet IPs are built around a
99
Synopsys IP Core and only tested on the STMicroelectronics
1010
platforms.
@@ -14,7 +14,7 @@ if STMMAC_ETH
1414
config STMMAC_DA
1515
bool "STMMAC DMA arbitration scheme"
1616
default n
17-
help
17+
---help---
1818
Selecting this option, rx has priority over Tx (only for Giga
1919
Ethernet device).
2020
By default, the DMA arbitration scheme is based on Round-robin
@@ -24,7 +24,7 @@ config STMMAC_DUAL_MAC
2424
bool "STMMAC: dual mac support (EXPERIMENTAL)"
2525
default n
2626
depends on EXPERIMENTAL && STMMAC_ETH && !STMMAC_TIMER
27-
help
27+
---help---
2828
Some ST SoCs (for example the stx7141 and stx7200c2) have two
2929
Ethernet Controllers. This option turns on the second Ethernet
3030
device on this kind of platforms.
@@ -33,7 +33,7 @@ config STMMAC_TIMER
3333
bool "STMMAC Timer optimisation"
3434
default n
3535
depends on RTC_HCTOSYS_DEVICE
36-
help
36+
---help---
3737
Use an external timer for mitigating the number of network
3838
interrupts. Currently, for SH architectures, it is possible
3939
to use the TMU channel 2 and the SH-RTC device.
@@ -45,12 +45,12 @@ choice
4545
config STMMAC_TMU_TIMER
4646
bool "TMU channel 2"
4747
depends on CPU_SH4
48-
help
48+
---help---
4949

5050
config STMMAC_RTC_TIMER
5151
bool "Real time clock"
5252
depends on RTC_CLASS
53-
help
53+
---help---
5454

5555
endchoice
5656

0 commit comments

Comments
 (0)