aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/microchipphy.h
diff options
context:
space:
mode:
authorRaghuram Chary J <raghuramchary.jallipalli@microchip.com>2018-04-11 20:36:36 +0530
committerDavid S. Miller <davem@davemloft.net>2018-04-12 21:46:10 -0400
commit1c2734b31d72316e3faaad88c0c9c46fa92a4b20 (patch)
treedceef2933c7c1a4a3579af0c75a2d1267728b841 /include/linux/microchipphy.h
parentmISDN: Remove VLAs (diff)
downloadlinux-dev-1c2734b31d72316e3faaad88c0c9c46fa92a4b20.tar.xz
linux-dev-1c2734b31d72316e3faaad88c0c9c46fa92a4b20.zip
lan78xx: PHY DSP registers initialization to address EEE link drop issues with long cables
The patch is to configure DSP registers of PHY device to handle Gbe-EEE failures with >40m cable length. Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Signed-off-by: Raghuram Chary J <raghuramchary.jallipalli@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/microchipphy.h')
-rw-r--r--include/linux/microchipphy.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/microchipphy.h b/include/linux/microchipphy.h
index eb492d47f717..8f9c90379732 100644
--- a/include/linux/microchipphy.h
+++ b/include/linux/microchipphy.h
@@ -70,4 +70,12 @@
#define LAN88XX_MMD3_CHIP_ID (32877)
#define LAN88XX_MMD3_CHIP_REV (32878)
+/* DSP registers */
+#define PHY_ARDENNES_MMD_DEV_3_PHY_CFG (0x806A)
+#define PHY_ARDENNES_MMD_DEV_3_PHY_CFG_ZD_DLY_EN_ (0x2000)
+#define LAN88XX_EXT_PAGE_ACCESS_TR (0x52B5)
+#define LAN88XX_EXT_PAGE_TR_CR 16
+#define LAN88XX_EXT_PAGE_TR_LOW_DATA 17
+#define LAN88XX_EXT_PAGE_TR_HIGH_DATA 18
+
#endif /* _MICROCHIPPHY_H */