diff options
author | Stefan Roese <sr@denx.de> | 2008-07-10 09:09:45 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-07-10 09:09:45 +0200 |
commit | ac5ba41c2234dd513ed2c879914e964cc05a0135 (patch) | |
tree | eea25003c17267efc504264bc1faa419a355a138 /board/apollon/apollon.c | |
parent | 7c6237b3e2f2ee0098897da39b79aff4642b8946 (diff) | |
parent | 4188f0491886b3b486164e819c0a83fdb97efd7d (diff) | |
download | u-boot-imx-ac5ba41c2234dd513ed2c879914e964cc05a0135.zip u-boot-imx-ac5ba41c2234dd513ed2c879914e964cc05a0135.tar.gz u-boot-imx-ac5ba41c2234dd513ed2c879914e964cc05a0135.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'board/apollon/apollon.c')
-rw-r--r-- | board/apollon/apollon.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/board/apollon/apollon.c b/board/apollon/apollon.c index 7e39817..8efa703 100644 --- a/board/apollon/apollon.c +++ b/board/apollon/apollon.c @@ -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); |