Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178058012
D61015.1795870688.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
923 B
Referenced Files
None
Subscribers
None
D61015.1795870688.diff
View Options
diff --git a/sys/dev/mii/mcommphy.c b/sys/dev/mii/mcommphy.c
--- a/sys/dev/mii/mcommphy.c
+++ b/sys/dev/mii/mcommphy.c
@@ -68,6 +68,8 @@
#define CLK_25M_SEL 0x0006
#define CLK_25M_SEL_125M 3
#define TX_CLK_DELAY_SEL 0x00f0
+#define PHY_DELAY_DRIVE_REG 0x0d
+#define FE_TX_CLK_DELAY_SEL 0xf000
#define PHY_SLEEP_CONTROL1_REG 0x27
#define PLLON_IN_SLP 0x4000
@@ -202,6 +204,17 @@
}
PHY_WRITE(sc, EXT_REG_DATA, data);
+ /* The delay of the 10/100 modes is in another page. */
+ PHY_WRITE(sc, EXT_REG_ADDR, PHY_DELAY_DRIVE_REG);
+ data = PHY_READ(sc, EXT_REG_DATA);
+ data &= ~FE_TX_CLK_DELAY_SEL;
+ if (sc->mii_flags & MIIF_TX_DELAY) {
+ data |= SHIFTIN(0xf, FE_TX_CLK_DELAY_SEL);
+ } else {
+ data |= SHIFTIN(0x2, FE_TX_CLK_DELAY_SEL);
+ }
+ PHY_WRITE(sc, EXT_REG_DATA, data);
+
PHY_WRITE(sc, EXT_REG_ADDR, PHY_SLEEP_CONTROL1_REG);
data = PHY_READ(sc, EXT_REG_DATA);
data |= PLLON_IN_SLP;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 28, 12:58 PM (1 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41256639
Default Alt Text
D61015.1795870688.diff (923 B)
Attached To
Mode
D61015: mcommphy: Set the 10/100 TX delay of the YT8511
Attached
Detach File
Event Timeline