From: Florent Kermarrec Date: Sun, 12 Apr 2015 18:58:23 +0000 (+0200) Subject: microudp.c: add #ifdef on ethmode (bios generation for gmii or mii was broken) X-Git-Tag: 24jan2021_ls180~2375 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3710afe7fe1cca791140ec7d8160142368932303;p=litex.git microudp.c: add #ifdef on ethmode (bios generation for gmii or mii was broken) --- diff --git a/software/libnet/microudp.c b/software/libnet/microudp.c index a96da8e9..fce73819 100644 --- a/software/libnet/microudp.c +++ b/software/libnet/microudp.c @@ -444,6 +444,7 @@ void ethreset(void) busy_wait(2); } +#ifdef CSR_ETHPHY_MODE_ADDR void ethmode(void) { ethphy_clock_counter_reset_write(1); @@ -465,6 +466,7 @@ void ethmode(void) ethphy_clock_counter_reset_write(1); } +#endif #endif