Add MX35 FEC support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
bee65f0d3f
commit
d32c471741
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue