Move MPC5xxx_FEC driver to drivers/net
PATCH 1/2 Move MPC5xxx_FEC driver to drivers/net
Signed-off-by Ben Warren <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
Signature · 1 line
1.5.4.3
PATCH 2/2 Move MPC512x_FEC driver to drivers/net
Signed-off-by Ben Warren <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
Signature · 1 line
1.5.4.3