I load my program via tftp. So after u-boot loads it ethernet should be still running.
But reading the MII status is not possible. The u-boot files for the board show the addr=0x02 for the PHY.
|dev0->enet_reg = (hw_enet_t *) ENET_BASE_ADDR;|
dev0->tx_busy = 0;
dev0->status = 0;
dev0->phy_addr = 2;
phyStat= imx_enet_get_phy_status( dev0);
phyStat is always 0, -1 would be a mistake. But the value returned from status is 65535, all 1.
Even if I use 0 or 1 as address of the PHY.
The line phy_write(phydev, MDIO_DEVAD_NONE, MII_CTRL1000, 0x1c00); in u-bbot means that
the PHY id is MDIO_DEVAD_NONE = -1
pAddr= 0x02188040; // MMFR register iMX6q
*pAddr= (1<<30) | (3<<28) | (31<<23) | (1<<18) | (1<<17);
Is this correct?