microudp.c: add #ifdef on ethmode (bios generation for gmii or mii was broken)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 12 Apr 2015 18:58:23 +0000 (20:58 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 12 Apr 2015 18:59:50 +0000 (20:59 +0200)
software/libnet/microudp.c

index a96da8e9d7650de25ab875468b86a23772c54682..fce73819b788a14d2a27b1119e2abe4df03fcc4b 100644 (file)
@@ -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