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:
Florent Kermarrec 2021-04-29 11:47:58 +02:00
parent 11f091d4cf
commit 87ebdea5a7
1 changed files with 2 additions and 0 deletions

View File

@ -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