Skip to contentSkip to conversation

Fec MPC5200 eth driver

PATCH In review Andrey Volkov 1 participant 1 message Aug 15, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fec MPC5200 eth driver

Second part. Contain only FEC parts.
Depended on previous bestcomm patch.

Signature · 2 lines
Regards
Andrey Volkov
drivers/net/Kconfig +1 -0
@@ -1750,6 +1750,7 @@ config NE_H8300
 	  controller on the Renesas H8/300 processor.
 
 source "drivers/net/fec_8xx/Kconfig"
+source "drivers/net/fec_mpc52xx/Kconfig"
 
 endmenu
 
drivers/net/Makefile +1 -0
@@ -181,6 +181,7 @@ obj-$(CONFIG_S2IO) += s2io.o
 obj-$(CONFIG_SMC91X) += smc91x.o
 obj-$(CONFIG_DM9000) += dm9000.o
 obj-$(CONFIG_FEC_8XX) += fec_8xx/
+obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx/
 
 obj-$(CONFIG_ARM) += arm/
 obj-$(CONFIG_DEV_APPLETALK) += appletalk/
drivers/net/fec_mpc52xx/Kconfig new file +23 -0
new file mode 100644
@@ -0,0 +1,23 @@
+menu "MPC5200 Networking Options"
+	depends PPC_MPC52xx && NET_ETHERNET
+
+config FEC_MPC52xx
+	bool "FEC Ethernet"
+	depends on NET_ETHERNET
+	select PPC_BESTCOMM
+	select CRC32
+	---help---
+	  This option enables support for the MPC5200's on-chip
+	  Fast Ethernet Controller
+
+config USE_MDIO
+	bool "  Use external Ethernet MII PHY"
+	select MII
+	depends FEC_MPC52xx
+	---help---
+	  The MPC5200's FEC can connect to the Ethernet either with
+	  an external MII PHY chip or 10 Mbps 7-wire interface 
+	  (Motorola? industry standard).
+	  If your board uses an external PHY, say y, else n.
+
+endmenu
drivers/net/fec_mpc52xx/fec.c new file +768 -0

768 lines not on this page · raw message

drivers/net/fec_mpc52xx/fec.h new file +308 -0

308 lines not on this page · raw message

drivers/net/fec_mpc52xx/fec_phy.c new file +526 -0

526 lines not on this page · raw message

drivers/net/fec_mpc52xx/fec_phy.h new file +73 -0

73 lines not on this page · raw message

drivers/net/fec_mpc52xx/Makefile new file +2 -0
new file mode 100644
@@ -0,0 +1,2 @@
+obj-$(CONFIG_FEC_MPC52xx) 	+= fec.o
+obj-$(CONFIG_USE_MDIO)		+= fec_phy.o