net fec_mpc5200: Use same platform_data as i.MX fec driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
13e657f712
commit
26eab97b41
|
@ -30,8 +30,7 @@
|
|||
#include <common.h>
|
||||
#include <driver.h>
|
||||
#include <init.h>
|
||||
#include <mach/mpc5xxx.h>
|
||||
#include <mach/fec.h>
|
||||
#include <fec.h>
|
||||
#include <types.h>
|
||||
#include <partition.h>
|
||||
#include <memory.h>
|
||||
|
@ -39,7 +38,7 @@
|
|||
#include <linux/stat.h>
|
||||
#include <fs.h>
|
||||
|
||||
static struct mpc5xxx_fec_platform_data fec_info = {
|
||||
static struct fec_platform_data fec_info = {
|
||||
.xcv_type = MII100,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#ifndef __INCLUDE_ASM_ARCH_FEC_H
|
||||
#define __INCLUDE_ASM_ARCH_FEC_H
|
||||
|
||||
struct mpc5xxx_fec_platform_data {
|
||||
ulong xcv_type;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
SEVENWIRE, /* 7-wire */
|
||||
MII10, /* MII 10Mbps */
|
||||
MII100 /* MII 100Mbps */
|
||||
} xceiver_type;
|
||||
|
||||
#endif /* __INCLUDE_ASM_ARCH_FEC_H */
|
|
@ -10,11 +10,11 @@
|
|||
#include <mach/mpc5xxx.h>
|
||||
#include <malloc.h>
|
||||
#include <net.h>
|
||||
#include <fec.h>
|
||||
#include <init.h>
|
||||
#include <miidev.h>
|
||||
#include <driver.h>
|
||||
#include <mach/sdma.h>
|
||||
#include <mach/fec.h>
|
||||
#include <mach/clocks.h>
|
||||
#include <miidev.h>
|
||||
#include "fec_mpc5200.h"
|
||||
|
@ -657,7 +657,7 @@ static int mpc5xxx_fec_recv(struct eth_device *dev)
|
|||
|
||||
int mpc5xxx_fec_probe(struct device_d *dev)
|
||||
{
|
||||
struct mpc5xxx_fec_platform_data *pdata = (struct mpc5xxx_fec_platform_data *)dev->platform_data;
|
||||
struct fec_platform_data *pdata = dev->platform_data;
|
||||
struct eth_device *edev;
|
||||
mpc5xxx_fec_priv *fec;
|
||||
|
||||
|
|
Loading…
Reference in New Issue