diff options
author | Raghuram Chary J <raghuramchary.jallipalli@microchip.com> | 2018-04-11 18:06:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-13 04:46:10 +0300 |
commit | 1c2734b31d72316e3faaad88c0c9c46fa92a4b20 (patch) | |
tree | dceef2933c7c1a4a3579af0c75a2d1267728b841 /include/linux/microchipphy.h | |
parent | 9a4381618262157586051f5ba0db42df3c6ab4b5 (diff) | |
download | linux-1c2734b31d72316e3faaad88c0c9c46fa92a4b20.tar.xz |
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.h | 8 |
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 */ |