Commit f89de741 authored by Vincent van Beveren's avatar Vincent van Beveren

added feedback for autoneg

parent 03f3e702
Pipeline #3298 canceled with stages
......@@ -237,10 +237,12 @@ void ep_set_autonegotiation(bool autoneg)
val = pcs_read(MDIO_REG_ECTRL);
if(autoneg)
{
puts("Enabeling auto-negotiation");
val |= MDIO_MCR_ANENABLE | MDIO_MCR_ANRESTART;
}
else
{
puts("Disabling auto-negotiation");
val &= ~(MDIO_MCR_ANENABLE | MDIO_MCR_ANRESTART);
}
pcs_write(MDIO_REG_ECTRL, val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment