#define DEBUG 0
-#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI) && \
- defined(CONFIG_MPC512x_FEC)
-
#if !(defined(CONFIG_MII) || defined(CONFIG_CMD_MII))
#error "CONFIG_MII has to be defined!"
#endif
* and do not drop the Preamble.
*/
out_be32(&fec->eth->mii_speed,
- (((gd->ips_clk / 1000000) / 5) + 1) << 1);
+ (((gd->arch.ips_clk / 1000000) / 5) + 1) << 1);
/*
* Reset PHY, then delay 300ns
/********************************************************************/
-static int mpc512x_fec_send (struct eth_device *dev, volatile void *eth_data,
- int data_length)
+static int mpc512x_fec_send(struct eth_device *dev, void *eth_data,
+ int data_length)
{
/*
* This routine transmits one frame. This routine only accepts
return 0;
}
-
-#endif /* CONFIG_MPC512x_FEC */