From 87ebdea5a736fe85d5050ef4b4694c1dc2660e52 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 29 Apr 2021 11:47:58 +0200 Subject: [PATCH] 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. --- litex/soc/software/libliteeth/udp.c | 2 ++ 1 file changed, 2 insertions(+) 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