software/libliteeth: Add optional ETH_PHY_NO_RESET support to allow disabling software reset.
Un-wanted when using the Hybrid LiteETHMAC since interrupt the hardware UDP/IP stack.
This commit is contained in:
parent
11f091d4cf
commit
87ebdea5a7
|
@ -463,11 +463,13 @@ void eth_init(void)
|
|||
{
|
||||
printf("Ethernet init...\n");
|
||||
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
|
||||
#ifndef ETH_PHY_NO_RESET
|
||||
ethphy_crg_reset_write(1);
|
||||
busy_wait(200);
|
||||
ethphy_crg_reset_write(0);
|
||||
busy_wait(200);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CSR_ETHPHY_MODE_DETECTION_MODE_ADDR
|
||||
|
|
Loading…
Reference in New Issue