summaryrefslogtreecommitdiffstats
path: root/app/steth.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/steth.c')
-rw-r--r--app/steth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/steth.c b/app/steth.c
index 7b23b3c..26429aa 100644
--- a/app/steth.c
+++ b/app/steth.c
@@ -215,6 +215,7 @@ static void my_eth_init (uint8_t phy, enum eth_clk clock)
+#if 0
static void phy_set_ignore_address (void)
{
unsigned i;
@@ -241,7 +242,7 @@ static void phy_set_ignore_address (void)
eth_smi_write (PHY1, 0x11, 0x8);
}
-
+#endif
static void eth_reset (void)
{
@@ -423,7 +424,8 @@ void steth_slow_tick (void)
if ((!phy_link_isup (PHY) || !an_happy) && running) {
printf ("stopping nic\r\n");
- eth_reset();
+ //eth_reset();
+ ETH_MACCR |= ETH_MACCR_RD;
running = 0;
@@ -453,6 +455,7 @@ void steth_slow_tick (void)
switch (phy_link_status (PHY)) {
case LINK_HD_10M:
TRACE;
+ break;
case LINK_HD_100M:
TRACE;