summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-27 14:25:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-01 09:15:29 +0200
commit2121b4fa6518fe98d9d327177948af435936861f (patch)
tree2ac66f5dd6cfda189f8b2651901f88004c8cd36d
parent710d2a1e1d2da5e7d0b3fabfe0c8aaa127c47507 (diff)
downloadrtems-libbsd-2121b4fa6518fe98d9d327177948af435936861f.tar.bz2
micphy: Hack to set some skew values
This works for the Altera Cyclone V SoC Development Kit.
-rw-r--r--freebsd/sys/dev/mii/micphy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/dev/mii/micphy.c b/freebsd/sys/dev/mii/micphy.c
index 77e123c5..501f7f19 100644
--- a/freebsd/sys/dev/mii/micphy.c
+++ b/freebsd/sys/dev/mii/micphy.c
@@ -194,6 +194,11 @@ micphy_attach(device_t dev)
ksz9021_load_values(sc, node, MII_KSZPHY_TX_DATA_PAD_SKEW,
"txd0-skew-ps", "txd1-skew-ps",
"txd2-skew-ps", "txd3-skew-ps");
+#else /* __rtems__ */
+ /* FIXME */
+ micphy_write(sc, MII_KSZPHY_CLK_CONTROL_PAD_SKEW, 0xf0f0);
+ micphy_write(sc, MII_KSZPHY_RX_DATA_PAD_SKEW, 0x0000);
+ micphy_write(sc, MII_KSZPHY_TX_DATA_PAD_SKEW, 0x0000);
#endif /* __rtems__ */
return (0);