9
0
Fork 0

Add MX35 FEC support

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-01-30 12:54:28 +01:00
parent bee65f0d3f
commit d32c471741
2 changed files with 3 additions and 2 deletions

View File

@ -54,7 +54,7 @@ config DRIVER_NET_MPC5200
config DRIVER_NET_IMX27
bool "i.MX27 Ethernet driver"
depends on ARCH_IMX27
depends on ARCH_IMX27 || ARCH_IMX35
select MIIPHY
config DRIVER_NET_MACB

View File

@ -568,8 +568,9 @@ int fec_probe(struct device_d *dev)
struct eth_device *edev;
fec_priv *fec;
uint32_t base;
#ifdef CONFIG_ARCH_IMX27
PCCR0 |= PCCR0_FEC_EN;
#endif
edev = (struct eth_device *)malloc(sizeof(struct eth_device));
dev->type_data = edev;
fec = (fec_priv*)malloc(sizeof(*fec));