do loadtask in ethernet driver
This commit is contained in:
parent
bcf8a2f798
commit
e054dd9ee4
|
@ -34,6 +34,7 @@
|
|||
void cpu_init_f (void)
|
||||
{
|
||||
unsigned long addecr = (1 << 25); /* Boot_CS */
|
||||
|
||||
#if defined(CFG_RAMBOOT) && defined(CONFIG_MGT5100)
|
||||
addecr |= (1 << 22); /* SDRAM enable */
|
||||
#endif
|
||||
|
@ -192,10 +193,5 @@ int cpu_init_r (void)
|
|||
/* route critical ints to normal ints */
|
||||
*(vu_long *)MPC5XXX_ICTL_EXT |= 0x00000001;
|
||||
|
||||
#ifdef CONFIG_DRIVER_NET_MPC5200
|
||||
/* load FEC microcode */
|
||||
loadtask(0, 2);
|
||||
#endif
|
||||
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -262,9 +262,7 @@ static int mpc5xxx_fec_init(struct eth_device *dev)
|
|||
* Set MII_SPEED = (1/(mii_speed * 2)) * System Clock
|
||||
* and do not drop the Preamble.
|
||||
*/
|
||||
printf("%s: miispeed\n", __FUNCTION__);
|
||||
fec->eth->mii_speed = (((get_ipb_clock() >> 20) / 5) << 1); /* No MII for 7-wire mode */
|
||||
printf("done: %d\n", get_ipb_clock());
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -683,6 +681,8 @@ int mpc5xxx_fec_probe(struct device_d *dev)
|
|||
|
||||
sprintf(dev->name, "FEC ETHERNET");
|
||||
|
||||
loadtask(0, 2);
|
||||
|
||||
if (fec->xcv_type != SEVENWIRE) {
|
||||
fec->miiphy.read = fec5xxx_miiphy_read;
|
||||
fec->miiphy.write = fec5xxx_miiphy_write;
|
||||
|
|
Loading…
Reference in New Issue