microudp.c: add #ifdef on ethmode (bios generation for gmii or mii was broken)

This commit is contained in:
Florent Kermarrec 2015-04-12 20:58:23 +02:00
parent 8e639160e3
commit 3710afe7fe
1 changed files with 2 additions and 0 deletions

View File

@ -444,6 +444,7 @@ void ethreset(void)
busy_wait(2); busy_wait(2);
} }
#ifdef CSR_ETHPHY_MODE_ADDR
void ethmode(void) void ethmode(void)
{ {
ethphy_clock_counter_reset_write(1); ethphy_clock_counter_reset_write(1);
@ -465,6 +466,7 @@ void ethmode(void)
ethphy_clock_counter_reset_write(1); ethphy_clock_counter_reset_write(1);
} }
#endif
#endif #endif