Skip to content

Commit ec21e2e

Browse files
author
Jeff Kirsher
committed
freescale: Move the Freescale drivers
Move the Freescale drivers into drivers/net/ethernet/freescale/ and make the necessary Kconfig and Makefile changes. CC: Sandeep Gopalpet <sandeep.kumar@freescale.com> CC: Andy Fleming <afleming@freescale.com> CC: Shlomi Gridish <gridish@freescale.com> CC: Li Yang <leoli@freescale.com> CC: Pantelis Antoniou <pantelis.antoniou@gmail.com> CC: Vitaly Bordug <vbordug@ru.mvista.com> CC: Dan Malek <dmalek@jlc.net> CC: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 5346ebf commit ec21e2e

32 files changed

+111
-87
lines changed

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ M: Vitaly Bordug <vbordug@ru.mvista.com>
26892689
L: linuxppc-dev@lists.ozlabs.org
26902690
L: netdev@vger.kernel.org
26912691
S: Maintained
2692-
F: drivers/net/fs_enet/
2692+
F: drivers/net/ethernet/freescale/fs_enet/
26932693
F: include/linux/fs_enet_pd.h
26942694

26952695
FREESCALE QUICC ENGINE LIBRARY
@@ -2711,7 +2711,7 @@ M: Li Yang <leoli@freescale.com>
27112711
L: netdev@vger.kernel.org
27122712
L: linuxppc-dev@lists.ozlabs.org
27132713
S: Maintained
2714-
F: drivers/net/ucc_geth*
2714+
F: drivers/net/ethernet/freescale/ucc_geth*
27152715

27162716
FREESCALE QUICC ENGINE UCC UART DRIVER
27172717
M: Timur Tabi <timur@freescale.com>

drivers/net/Kconfig

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -605,39 +605,6 @@ config NET_POCKET
605605
the questions about this class of network devices. If you say Y, you
606606
will be asked for your specific device in the following questions.
607607

608-
config FEC
609-
bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
610-
depends on M523x || M527x || M5272 || M528x || M520x || M532x || \
611-
IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC
612-
default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM
613-
select PHYLIB
614-
help
615-
Say Y here if you want to use the built-in 10/100 Fast ethernet
616-
controller on some Motorola ColdFire and Freescale i.MX processors.
617-
618-
config FEC_MPC52xx
619-
tristate "MPC52xx FEC driver"
620-
depends on PPC_MPC52xx && PPC_BESTCOMM
621-
select CRC32
622-
select PHYLIB
623-
select PPC_BESTCOMM_FEC
624-
---help---
625-
This option enables support for the MPC5200's on-chip
626-
Fast Ethernet Controller
627-
If compiled as module, it will be called fec_mpc52xx.
628-
629-
config FEC_MPC52xx_MDIO
630-
bool "MPC52xx FEC MDIO bus driver"
631-
depends on FEC_MPC52xx
632-
default y
633-
---help---
634-
The MPC5200's FEC can connect to the Ethernet either with
635-
an external MII PHY chip or 10 Mbps 7-wire interface
636-
(Motorola? industry standard).
637-
If your board uses an external PHY connected to FEC, enable this.
638-
If not sure, enable.
639-
If compiled as module, it will be called fec_mpc52xx_phy.
640-
641608
config XILINX_EMACLITE
642609
tristate "Xilinx 10/100 Ethernet Lite support"
643610
depends on PPC32 || MICROBLAZE
@@ -651,9 +618,6 @@ config LANTIQ_ETOP
651618
help
652619
Support for the MII0 inside the Lantiq SoC
653620

654-
655-
source "drivers/net/fs_enet/Kconfig"
656-
657621
source "drivers/net/octeon/Kconfig"
658622

659623
endif # NET_ETHERNET
@@ -769,36 +733,6 @@ config GELIC_WIRELESS
769733
the driver automatically distinguishes the models, you can
770734
safely enable this option even if you have a wireless-less model.
771735

772-
config FSL_PQ_MDIO
773-
tristate "Freescale PQ MDIO"
774-
depends on FSL_SOC
775-
select PHYLIB
776-
help
777-
This driver supports the MDIO bus used by the gianfar and UCC drivers.
778-
779-
config GIANFAR
780-
tristate "Gianfar Ethernet"
781-
depends on FSL_SOC
782-
select FSL_PQ_MDIO
783-
select PHYLIB
784-
select CRC32
785-
help
786-
This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx,
787-
and MPC86xx family of chips, and the FEC on the 8540.
788-
789-
config UCC_GETH
790-
tristate "Freescale QE Gigabit Ethernet"
791-
depends on QUICC_ENGINE
792-
select FSL_PQ_MDIO
793-
select PHYLIB
794-
help
795-
This driver supports the Gigabit Ethernet mode of the QUICC Engine,
796-
which is available on some Freescale SOCs.
797-
798-
config UGETH_TX_ON_DEMAND
799-
bool "Transmit on Demand support"
800-
depends on UCC_GETH
801-
802736
config XILINX_LL_TEMAC
803737
tristate "Xilinx LL TEMAC (LocalLink Tri-mode Ethernet MAC) driver"
804738
depends on PPC || MICROBLAZE

drivers/net/Makefile

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,9 @@ obj-$(CONFIG_TI_DAVINCI_CPDMA) += davinci_cpdma.o
1313
obj-$(CONFIG_IP1000) += ipg.o
1414
obj-$(CONFIG_CAN) += can/
1515
obj-$(CONFIG_BONDING) += bonding/
16-
obj-$(CONFIG_GIANFAR) += gianfar_driver.o
17-
obj-$(CONFIG_PTP_1588_CLOCK_GIANFAR) += gianfar_ptp.o
1816
obj-$(CONFIG_JME) += jme.o
1917
obj-$(CONFIG_VMXNET3) += vmxnet3/
2018

21-
gianfar_driver-objs := gianfar.o \
22-
gianfar_ethtool.o \
23-
gianfar_sysfs.o
24-
25-
obj-$(CONFIG_UCC_GETH) += ucc_geth_driver.o
26-
ucc_geth_driver-objs := ucc_geth.o ucc_geth_ethtool.o
27-
28-
obj-$(CONFIG_FSL_PQ_MDIO) += fsl_pq_mdio.o
29-
3019
#
3120
# link order important here
3221
#
@@ -63,11 +52,6 @@ obj-$(CONFIG_HAMACHI) += hamachi.o
6352
obj-$(CONFIG_NET) += Space.o loopback.o
6453
obj-$(CONFIG_NET_SB1000) += sb1000.o
6554
obj-$(CONFIG_HP100) += hp100.o
66-
obj-$(CONFIG_FEC) += fec.o
67-
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx.o
68-
ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y)
69-
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx_phy.o
70-
endif
7155
obj-$(CONFIG_FORCEDETH) += forcedeth.o
7256

7357
obj-$(CONFIG_TSI108_ETH) += tsi108_eth.o
@@ -139,8 +123,6 @@ obj-$(CONFIG_ETRAX_ETHERNET) += cris/
139123

140124
obj-$(CONFIG_NETCONSOLE) += netconsole.o
141125

142-
obj-$(CONFIG_FS_ENET) += fs_enet/
143-
144126
obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
145127

146128
obj-$(CONFIG_WIMAX) += wimax/

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ source "drivers/net/ethernet/dlink/Kconfig"
2424
source "drivers/net/ethernet/emulex/Kconfig"
2525
source "drivers/net/ethernet/neterion/Kconfig"
2626
source "drivers/net/ethernet/faraday/Kconfig"
27+
source "drivers/net/ethernet/freescale/Kconfig"
2728
source "drivers/net/ethernet/fujitsu/Kconfig"
2829
source "drivers/net/ethernet/ibm/Kconfig"
2930
source "drivers/net/ethernet/intel/Kconfig"

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ obj-$(CONFIG_NET_VENDOR_DLINK) += dlink/
1616
obj-$(CONFIG_NET_VENDOR_EMULEX) += emulex/
1717
obj-$(CONFIG_NET_VENDOR_EXAR) += neterion/
1818
obj-$(CONFIG_NET_VENDOR_FARADAY) += faraday/
19+
obj-$(CONFIG_NET_VENDOR_FREESCALE) += freescale/
1920
obj-$(CONFIG_NET_VENDOR_FUJITSU) += fujitsu/
2021
obj-$(CONFIG_NET_VENDOR_IBM) += ibm/
2122
obj-$(CONFIG_NET_VENDOR_INTEL) += intel/
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#
2+
# Freescale device configuration
3+
#
4+
5+
config NET_VENDOR_FREESCALE
6+
bool "Freescale devices"
7+
depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \
8+
M523x || M527x || M5272 || M528x || M520x || M532x || \
9+
IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC || \
10+
(PPC_MPC52xx && PPC_BESTCOMM)
11+
---help---
12+
If you have a network (Ethernet) card belonging to this class, say Y
13+
and read the Ethernet-HOWTO, available from
14+
<http://www.tldp.org/docs.html#howto>.
15+
16+
Note that the answer to this question doesn't directly affect the
17+
kernel: saying N will just cause the configurator to skip all
18+
the questions about IBM devices. If you say Y, you will be asked for
19+
your specific card in the following questions.
20+
21+
if NET_VENDOR_FREESCALE
22+
23+
config FEC
24+
bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
25+
depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
26+
IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC)
27+
default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM
28+
select PHYLIB
29+
---help---
30+
Say Y here if you want to use the built-in 10/100 Fast ethernet
31+
controller on some Motorola ColdFire and Freescale i.MX processors.
32+
33+
config FEC_MPC52xx
34+
tristate "FEC MPC52xx driver"
35+
depends on PPC_MPC52xx && PPC_BESTCOMM
36+
select CRC32
37+
select PHYLIB
38+
select PPC_BESTCOMM_FEC
39+
---help---
40+
This option enables support for the MPC5200's on-chip
41+
Fast Ethernet Controller
42+
If compiled as module, it will be called fec_mpc52xx.
43+
44+
config FEC_MPC52xx_MDIO
45+
bool "FEC MPC52xx MDIO bus driver"
46+
depends on FEC_MPC52xx
47+
default y
48+
---help---
49+
The MPC5200's FEC can connect to the Ethernet either with
50+
an external MII PHY chip or 10 Mbps 7-wire interface
51+
(Motorola? industry standard).
52+
If your board uses an external PHY connected to FEC, enable this.
53+
If not sure, enable.
54+
If compiled as module, it will be called fec_mpc52xx_phy.
55+
56+
source "drivers/net/ethernet/freescale/fs_enet/Kconfig"
57+
58+
config FSL_PQ_MDIO
59+
tristate "Freescale PQ MDIO"
60+
depends on FSL_SOC
61+
select PHYLIB
62+
---help---
63+
This driver supports the MDIO bus used by the gianfar and UCC drivers.
64+
65+
config UCC_GETH
66+
tristate "Freescale QE Gigabit Ethernet"
67+
depends on QUICC_ENGINE
68+
select FSL_PQ_MDIO
69+
select PHYLIB
70+
---help---
71+
This driver supports the Gigabit Ethernet mode of the QUICC Engine,
72+
which is available on some Freescale SOCs.
73+
74+
config UGETH_TX_ON_DEMAND
75+
bool "Transmit on Demand support"
76+
depends on UCC_GETH
77+
78+
config GIANFAR
79+
tristate "Gianfar Ethernet"
80+
depends on FSL_SOC
81+
select FSL_PQ_MDIO
82+
select PHYLIB
83+
select CRC32
84+
---help---
85+
This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx,
86+
and MPC86xx family of chips, and the FEC on the 8540.
87+
88+
endif # NET_VENDOR_FREESCALE
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Makefile for the Freescale network device drivers.
3+
#
4+
5+
obj-$(CONFIG_FEC) += fec.o
6+
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx.o
7+
ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y)
8+
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx_phy.o
9+
endif
10+
obj-$(CONFIG_FS_ENET) += fs_enet/
11+
obj-$(CONFIG_FSL_PQ_MDIO) += fsl_pq_mdio.o
12+
obj-$(CONFIG_GIANFAR) += gianfar_driver.o
13+
obj-$(CONFIG_PTP_1588_CLOCK_GIANFAR) += gianfar_ptp.o
14+
gianfar_driver-objs := gianfar.o \
15+
gianfar_ethtool.o \
16+
gianfar_sysfs.o
17+
obj-$(CONFIG_UCC_GETH) += ucc_geth_driver.o
18+
ucc_geth_driver-objs := ucc_geth.o ucc_geth_ethtool.o
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)