summaryrefslogtreecommitdiff
path: root/include/micrel.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-06-24 22:27:44 -0400
committerTom Rini <trini@ti.com>2013-06-24 22:27:44 -0400
commitca85eb8c4271509aaac1ccb26ae3eb1a7827b4e6 (patch)
tree1532b13194c3d7daa8f1f10f3263fb806911cd67 /include/micrel.h
parent4e78e0317d3aab42c381b01033a0cd869ea28979 (diff)
parent433a2c5325b982b49b099e526d373d07d0cc5e97 (diff)
downloadu-boot-imx-ca85eb8c4271509aaac1ccb26ae3eb1a7827b4e6.zip
u-boot-imx-ca85eb8c4271509aaac1ccb26ae3eb1a7827b4e6.tar.gz
u-boot-imx-ca85eb8c4271509aaac1ccb26ae3eb1a7827b4e6.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'include/micrel.h')
-rw-r--r--include/micrel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/micrel.h b/include/micrel.h
index 25e8a46..e1c62d8 100644
--- a/include/micrel.h
+++ b/include/micrel.h
@@ -8,9 +8,20 @@
#define MII_KSZ9021_EXT_RGMII_RX_DATA_SKEW 0x105
#define MII_KSZ9021_EXT_RGMII_TX_DATA_SKEW 0x106
#define MII_KSZ9021_EXT_ANALOG_TEST 0x107
+/* Register operations */
+#define MII_KSZ9031_MOD_REG 0x0000
+/* Data operations */
+#define MII_KSZ9031_MOD_DATA_NO_POST_INC 0x4000
+#define MII_KSZ9031_MOD_DATA_POST_INC_RW 0x8000
+#define MII_KSZ9031_MOD_DATA_POST_INC_W 0xC000
struct phy_device;
int ksz9021_phy_extended_write(struct phy_device *phydev, int regnum, u16 val);
int ksz9021_phy_extended_read(struct phy_device *phydev, int regnum);
+int ksz9031_phy_extended_write(struct phy_device *phydev, int devaddr,
+ int regnum, u16 mode, u16 val);
+int ksz9031_phy_extended_read(struct phy_device *phydev, int devaddr,
+ int regnum, u16 mode);
+
#endif