diff --git a/litex/soc/software/libliteeth/udp.c b/litex/soc/software/libliteeth/udp.c index 8c34f30bd..985120743 100644 --- a/litex/soc/software/libliteeth/udp.c +++ b/litex/soc/software/libliteeth/udp.c @@ -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