software/libnet/microudp: cleanup eth_init
This commit is contained in:
parent
92a79c6dc1
commit
3441eb05cb
|
@ -453,18 +453,15 @@ static void busy_wait(unsigned int ds)
|
||||||
while(timer0_value_read()) timer0_update_value_write(1);
|
while(timer0_value_read()) timer0_update_value_write(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
|
|
||||||
void eth_init(void)
|
void eth_init(void)
|
||||||
{
|
{
|
||||||
ethphy_crg_reset_write(0);
|
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
|
||||||
busy_wait(2);
|
|
||||||
/* that pesky ethernet PHY needs two resets at times... */
|
|
||||||
ethphy_crg_reset_write(1);
|
ethphy_crg_reset_write(1);
|
||||||
busy_wait(2);
|
busy_wait(2);
|
||||||
ethphy_crg_reset_write(0);
|
ethphy_crg_reset_write(0);
|
||||||
busy_wait(2);
|
busy_wait(2);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CSR_ETHPHY_MODE_DETECTION_MODE_ADDR
|
#ifdef CSR_ETHPHY_MODE_DETECTION_MODE_ADDR
|
||||||
void eth_mode(void)
|
void eth_mode(void)
|
||||||
|
|
Loading…
Reference in New Issue