File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24735,7 +24735,7 @@ bool __attribute__((weak)) mg_wifi_ap_stop(void) {
2473524735
2473624736
2473724737enum { // ID1 ID2
24738- MG_PHY_KSZ8x = 0x22, // 0022 1561 - KSZ8081RNB
24738+ MG_PHY_KSZ8x = 0x22, // 0022 156x - KSZ8081RNB, KSZ8091RNB
2473924739 MG_PHY_DP83x = 0x2000,
2474024740 MG_PHY_DP83867 = 0xa231, // 2000 a231 - TI DP83867I
2474124741 MG_PHY_DP83825 = 0xa140, // 2000 a140 - TI DP83825I
@@ -25594,7 +25594,7 @@ static bool mg_tcpip_driver_ra_init(struct mg_tcpip_if *ifp) {
2559425594
2559525595 MG_DEBUG(("PHY addr: %d, smispin: %d", d->phy_addr, s_smispin));
2559625596 struct mg_phy phy = {raeth_read_phy, raeth_write_phy};
25597- mg_phy_init(&phy, d->phy_addr, 0); // MAC clocks PHY
25597+ mg_phy_init(&phy, d->phy_addr, MG_PHY_CLOCKS_MAC);
2559825598
2559925599 // Select RMII mode,
2560025600 ETHERC->ECMR = MG_BIT(2) | MG_BIT(1); // 100M, Full-duplex, CRC
Original file line number Diff line number Diff line change 11#include "phy.h"
22
33enum { // ID1 ID2
4- MG_PHY_KSZ8x = 0x22 , // 0022 1561 - KSZ8081RNB
4+ MG_PHY_KSZ8x = 0x22 , // 0022 156x - KSZ8081RNB, KSZ8091RNB
55 MG_PHY_DP83x = 0x2000 ,
66 MG_PHY_DP83867 = 0xa231 , // 2000 a231 - TI DP83867I
77 MG_PHY_DP83825 = 0xa140 , // 2000 a140 - TI DP83825I
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ static bool mg_tcpip_driver_ra_init(struct mg_tcpip_if *ifp) {
160160
161161 MG_DEBUG (("PHY addr: %d, smispin: %d" , d -> phy_addr , s_smispin ));
162162 struct mg_phy phy = {raeth_read_phy , raeth_write_phy };
163- mg_phy_init (& phy , d -> phy_addr , 0 ); // MAC clocks PHY
163+ mg_phy_init (& phy , d -> phy_addr , MG_PHY_CLOCKS_MAC );
164164
165165 // Select RMII mode,
166166 ETHERC -> ECMR = MG_BIT (2 ) | MG_BIT (1 ); // 100M, Full-duplex, CRC
You can’t perform that action at this time.
0 commit comments