Skip to contentSkip to conversation

Move MPC5xxx_FEC driver to drivers/net

PATCH New Ben Warren 1 participant 2 messages Aug 29, 2008 Network drivers

lore
Share & tools
lore

Ben Warren

author
#0 lore raw

PATCH 1/2 Move MPC5xxx_FEC driver to drivers/net

---
 cpu/mpc5xxx/Makefile                           |    2 +-
 drivers/net/Makefile                           |    1 +
 cpu/mpc5xxx/fec.c => drivers/net/mpc5xxx_fec.c |    4 ++--
 cpu/mpc5xxx/fec.h => drivers/net/mpc5xxx_fec.h |    4 ----
 cpu/mpc5xxx/sdma.h => include/mpc5xxx_sdma.h   |    0 
 5 files changed, 4 insertions(+), 7 deletions(-)
 rename cpu/mpc5xxx/fec.c => drivers/net/mpc5xxx_fec.c (99%)
 rename cpu/mpc5xxx/fec.h => drivers/net/mpc5xxx_fec.h (99%)
 rename cpu/mpc5xxx/sdma.h => include/mpc5xxx_sdma.h (100%)
cpu/mpc5xxx/Makefile +1 -1
index 312b0bf..06fdbcf 100644
@@ -27,7 +27,7 @@ LIB	= $(obj)lib$(CPU).a
 
 START	= start.o
 SOBJS	= io.o firmware_sc_task_bestcomm.impl.o firmware_sc_task.impl.o
-COBJS	= i2c.o traps.o cpu.o cpu_init.o fec.o ide.o interrupts.o \
+COBJS	= i2c.o traps.o cpu.o cpu_init.o ide.o interrupts.o \
 	  loadtask.o pci_mpc5200.o serial.o speed.o usb_ohci.o usb.o
 
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
drivers/net/Makefile +1 -0
index bcf31cb..c68d3e7 100644
@@ -41,6 +41,7 @@ COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o
 COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o
 COBJS-$(CONFIG_MACB) += macb.o
 COBJS-$(CONFIG_MCFFEC) += mcffec.o
+COBJS-$(CONFIG_MPC5xxx_FEC) += mpc5xxx_fec.o
 COBJS-$(CONFIG_NATSEMI) += natsemi.o
 ifeq ($(CONFIG_DRIVER_NE2000),y)
 COBJS-y += ne2000.o
drivers/net/mpc5xxx_fec.c renamed from cpu/mpc5xxx/fec.c +2 -2
similarity index 99%
rename from cpu/mpc5xxx/fec.c
rename to drivers/net/mpc5xxx_fec.c
index bf804ee..3d3eb8b 100644
@@ -8,11 +8,11 @@
 
 #include <common.h>
 #include <mpc5xxx.h>
+#include <mpc5xxx_sdma.h>
 #include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
-#include "sdma.h"
-#include "fec.h"
+#include "mpc5xxx_fec.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
drivers/net/mpc5xxx_fec.h renamed from cpu/mpc5xxx/fec.h +0 -4
similarity index 99%
rename from cpu/mpc5xxx/fec.h
rename to drivers/net/mpc5xxx_fec.h
index 81756a5..16c3e8e 100644
@@ -11,10 +11,6 @@
 #ifndef __MPC5XXX_FEC_H
 #define __MPC5XXX_FEC_H
 
-#include <common.h>
-#include <mpc5xxx.h>
-#include "sdma.h"
-
 typedef unsigned long uint32;
 typedef unsigned short uint16;
 typedef unsigned char uint8;
include/mpc5xxx_sdma.h renamed from cpu/mpc5xxx/sdma.h +0 -0
similarity index 100%
rename from cpu/mpc5xxx/sdma.h
rename to include/mpc5xxx_sdma.h
Signature · 1 line
1.5.4.3
author
#1 lore raw

PATCH 2/2 Move MPC512x_FEC driver to drivers/net

---
 cpu/mpc512x/Makefile                           |    2 +-
 drivers/net/Makefile                           |    1 +
 cpu/mpc512x/fec.c => drivers/net/mpc512x_fec.c |    2 +-
 cpu/mpc512x/fec.h => drivers/net/mpc512x_fec.h |    0 
 4 files changed, 3 insertions(+), 2 deletions(-)
 rename cpu/mpc512x/fec.c => drivers/net/mpc512x_fec.c (99%)
 rename cpu/mpc512x/fec.h => drivers/net/mpc512x_fec.h (100%)
cpu/mpc512x/Makefile +1 -1
index 8ba8ae8..e8f1060 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(CPU).a
 
 START	= start.o
-COBJS	= traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o fec.o i2c.o iopin.o
+COBJS	= traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o i2c.o iopin.o
 
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
drivers/net/Makefile +1 -0
index c68d3e7..a084000 100644
@@ -42,6 +42,7 @@ COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o
 COBJS-$(CONFIG_MACB) += macb.o
 COBJS-$(CONFIG_MCFFEC) += mcffec.o
 COBJS-$(CONFIG_MPC5xxx_FEC) += mpc5xxx_fec.o
+COBJS-$(CONFIG_MPC512x_FEC) += mpc512x_fec.o
 COBJS-$(CONFIG_NATSEMI) += natsemi.o
 ifeq ($(CONFIG_DRIVER_NE2000),y)
 COBJS-y += ne2000.o
drivers/net/mpc512x_fec.c renamed from cpu/mpc512x/fec.c +1 -1
similarity index 99%
rename from cpu/mpc512x/fec.c
rename to drivers/net/mpc512x_fec.c
index e9df7de..7caeeda 100644
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
-#include "fec.h"
+#include "mpc512x_fec.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
drivers/net/mpc512x_fec.h renamed from cpu/mpc512x/fec.h +0 -0
similarity index 100%
rename from cpu/mpc512x/fec.h
rename to drivers/net/mpc512x_fec.h
Signature · 1 line
1.5.4.3