Lines Matching +full:100 +full:base +full:- +full:t
5 * SPDX-License-Identifier: Apache-2.0
18 /* Maximum time to establish a link through auto-negotiation for
19 * 10BASE-T, 100BASE-TX is 3.7s, to add an extra margin the timeout
27 eth->NETWORKCTRL |= ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_enable()
33 eth->NETWORKCTRL &= ~ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_disable()
39 uint32_t retries = 100U; /* will wait up to 1 s */ in mdio_bus_wait()
41 while (!(eth->NETWORKSTATUS & ETH_NETWORKSTATUS_MANDONE)) { in mdio_bus_wait()
42 if (retries-- == 0U) { in mdio_bus_wait()
44 return -ETIMEDOUT; in mdio_bus_wait()
60 eth->PHYMNGMNT = ETH_PHYMNGMNT_WRITE0_DEFAULT in mdio_bus_send()
83 ETH_TypeDef *const eth = phy->regs; in phy_read()
84 uint8_t phy_addr = phy->address; in phy_read()
93 *value = eth->PHYMNGMNT & _ETH_PHYMNGMNT_PHYRWDATA_MASK; in phy_read()
102 ETH_TypeDef *const eth = phy->regs; in phy_write()
103 uint8_t phy_addr = phy->address; in phy_write()
126 if (retries-- == 0U) { in phy_soft_reset()
127 return -ETIMEDOUT; in phy_soft_reset()
143 ETH_TypeDef *const eth = phy->regs; in phy_gecko_init()
155 return -1; in phy_gecko_init()
158 LOG_INF("PHYID: 0x%X at addr: %d", phy_id, phy->address); in phy_gecko_init()
167 ETH_TypeDef *const eth = phy->regs; in phy_gecko_id_get()
193 ETH_TypeDef *const eth = phy->regs; in phy_gecko_auto_negotiate()
197 uint32_t retries = PHY_AUTONEG_TIMEOUT_MS / 100; in phy_gecko_auto_negotiate()
202 LOG_DBG("Starting ETH PHY auto-negotiate sequence"); in phy_gecko_auto_negotiate()
210 /* Configure and start auto-negotiation process */ in phy_gecko_auto_negotiate()
217 val &= ~MII_BMCR_ISOLATE; /* Don't isolate the PHY */ in phy_gecko_auto_negotiate()
224 /* Wait for the auto-negotiation process to complete */ in phy_gecko_auto_negotiate()
226 if (retries-- == 0U) { in phy_gecko_auto_negotiate()
227 retval = -ETIMEDOUT; in phy_gecko_auto_negotiate()
231 k_sleep(K_MSEC(100)); in phy_gecko_auto_negotiate()
239 LOG_DBG("PHY auto-negotiate sequence completed"); in phy_gecko_auto_negotiate()
259 *status & ETH_NETWORKCFG_SPEED ? "100" : "10", in phy_gecko_auto_negotiate()
269 ETH_TypeDef *const eth = phy->regs; in phy_gecko_is_linked()