X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fapollon%2Fapollon.c;h=8efa7039512b29fa428a2b7bb95abaf9ad79a73e;hb=5d9a5efa4b332f442b54a755d49969123c3a8742;hp=383b0643f87ddc73c450333b66988671d5303cd4;hpb=751b9b5189f3274b03c809172631316d6b002c82;p=oweals%2Fu-boot.git diff --git a/board/apollon/apollon.c b/board/apollon/apollon.c index 383b0643f8..8efa703951 100644 --- a/board/apollon/apollon.c +++ b/board/apollon/apollon.c @@ -140,7 +140,7 @@ void wait_for_command_complete(unsigned int wd_base) /******************************************************************* * Routine:ether_init * Description: take the Ethernet controller out of reset and wait - * for the EEPROM load to complete. + * for the EEPROM load to complete. ******************************************************************/ void ether_init(void) { @@ -153,10 +153,8 @@ void ether_init(void) do { __raw_writew(0x1, LAN_RESET_REGISTER); udelay(100); - if (cnt == 0) { - printf("1. eth reset err\n"); + if (cnt == 0) goto eth_reset_err_out; - } --cnt; } while (__raw_readw(LAN_RESET_REGISTER) != 0x1); @@ -165,10 +163,8 @@ void ether_init(void) do { __raw_writew(0x0, LAN_RESET_REGISTER); udelay(100); - if (cnt == 0) { - printf("2. eth reset err\n"); + if (cnt == 0) goto eth_reset_err_out; - } --cnt; } while (__raw_readw(LAN_RESET_REGISTER) != 0x0000); udelay(1000);