Lines Matching refs:eth_phy_addr
41 static uint32_t eth_phy_addr; variable
88 mdio_read(gmacdev, eth_phy_addr, MII_BMSR); in numaker_eth_link_ok()
89 if (mdio_read(gmacdev, eth_phy_addr, MII_BMSR) & BMSR_LSTATUS) { in numaker_eth_link_ok()
101 mdio_write(gmacdev, eth_phy_addr, MII_BMCR, BMCR_RESET); in reset_phy()
104 ret = WAIT_FOR(!(mdio_read(gmacdev, eth_phy_addr, MII_BMCR) & BMCR_RESET), in reset_phy()
111 LOG_INF("PHY ID 1:0x%x", mdio_read(gmacdev, eth_phy_addr, MII_PHYSID1)); in reset_phy()
112 LOG_INF("PHY ID 2:0x%x", mdio_read(gmacdev, eth_phy_addr, MII_PHYSID2)); in reset_phy()
124 mdio_write(gmacdev, eth_phy_addr, MII_ADVERTISE, NUMAKER_MII_CONFIG); in reset_phy()
125 reg = mdio_read(gmacdev, eth_phy_addr, MII_BMCR); in reset_phy()
126 mdio_write(gmacdev, eth_phy_addr, MII_BMCR, reg | BMCR_ANRESTART); in reset_phy()
128 ret = WAIT_FOR((mdio_read(gmacdev, eth_phy_addr, MII_BMSR) & in reset_phy()
138 reg = mdio_read(gmacdev, eth_phy_addr, MII_LPA); in reset_phy()
718 eth_phy_addr = cfg->phy_addr; in eth_numaker_init()