mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
refactor for RGMII PHYs and add a new one
This commit is contained in:
1 parent
b45e0fbcb4
commit
2523f81499
6 files changed
+152
-130
No files matched your search
+4
-2
@@ -5605,8 +5605,10 @@ struct mg_phy {
|
||||
enum {
|
||||
// Set if PHY LEDs are connected to ground
|
||||
MG_PHY_LEDS_ACTIVE_HIGH = (1 << 0),
|
||||
// Set when PHY clocks MAC. Otherwise, MAC clocks PHY
|
||||
MG_PHY_CLOCKS_MAC = (1 << 1)
|
||||
// Set on RMII when PHY clocks MAC. Otherwise, MAC clocks PHY
|
||||
MG_PHY_CLOCKS_MAC = (1 << 1),
|
||||
// Set on RGMII. Otherwise, we assume RMII
|
||||
MG_PHY_RGMII = (1 << 2)
|
||||
};
|
||||
|
||||
enum { MG_PHY_SPEED_10M, MG_PHY_SPEED_100M, MG_PHY_SPEED_1000M };
|
||||
|
||||
Reference in new issue
Block a user