add user PHY init event

This commit is contained in:
Sergio R. Caprile committed 2026-11-30 12:02:19 -03:00
1 parent 3322a119eb
commit c0630a7039
12 files changed
+12

No files matched your search

+1
View File
@@ -164,6 +164,7 @@ static bool mg_tcpip_driver_ra_init(struct mg_tcpip_if *ifp) {
MG_DEBUG(("PHY addr: %d, smispin: %d", d->phy_addr, s_smispin));
struct mg_phy phy = {raeth_read_phy, raeth_write_phy};
mg_phy_init(&phy, d->phy_addr, MG_PHY_CLOCKS_MAC);
mg_tcpip_call(ifp, MG_TCPIP_EV_PHY_INIT, &phy);
// Select RMII mode,
ETHERC->ECMR = MG_BIT(2) | MG_BIT(1); // 100M, Full-duplex, CRC