[rtems-libbsd commit] micphy: Hack to set some skew values
Sebastian Huber
sebh at rtems.org
Wed Apr 1 07:16:38 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 2121b4fa6518fe98d9d327177948af435936861f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=2121b4fa6518fe98d9d327177948af435936861f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Mar 27 14:25:16 2015 +0100
micphy: Hack to set some skew values
This works for the Altera Cyclone V SoC Development Kit.
---
freebsd/sys/dev/mii/micphy.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/freebsd/sys/dev/mii/micphy.c b/freebsd/sys/dev/mii/micphy.c
index 77e123c..501f7f1 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);
More information about the vc
mailing list