Searched refs:eth_phy_addr (Results 1 – 1 of 1) sorted by relevance
/Zephyr-Core-3.7.0/drivers/ethernet/ |
D | eth_numaker.c | 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() [all …]
|