Skip to content

Commit c083f20

Browse files
committed
fix RA6M4
1 parent 70d268d commit c083f20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mongoose.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24735,7 +24735,7 @@ bool __attribute__((weak)) mg_wifi_ap_stop(void) {
2473524735

2473624736

2473724737
enum { // 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

src/drivers/phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "phy.h"
22

33
enum { // 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

src/drivers/ra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)