This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

U-Boot support for DM9161 PHY

Other Parts Discussed in Thread: AM3517

I have an am3517 based board with DM9161 phy and would like to use networking in u-boot. I know that there is already a port for Atmel at91rm9200. Though I ported the needed functions like auto_negotiate and so on, I'm still unable to ping anything in my network (Linux kernel has no problems using this phy).

Has anyone already used DM9161 with DaVinci MAC?

Regards,

Yegor

  • I could solve the problem by applying following patch. Is EMAC_MDIO_PHY_MASK; really needed? Would it work with other phys without this mask? Can someone check it, cause I have only this hardware setup.

    ---
     drivers/net/davinci_emac.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    Index: b/drivers/net/davinci_emac.c
    ===================================================================
    --- a/drivers/net/davinci_emac.c
    +++ b/drivers/net/davinci_emac.c
    @@ -140,7 +140,7 @@

            active_phy_addr = 0xff;

    -       phy_act_state = readl(&adap_mdio->ALIVE) & EMAC_MDIO_PHY_MASK;
    +       phy_act_state = readl(&adap_mdio->ALIVE) /*& EMAC_MDIO_PHY_MASK*/;
            if (phy_act_state == 0)
                    return(0);                              /* No active PHYs */