aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/brcmphy.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian.fainelli@broadcom.com>2023-05-31 16:17:29 -0700
committerJakub Kicinski <kuba@kernel.org>2023-06-01 21:40:10 -0700
commite8b6f79b41840c542b7ef45c16b31dd17e1cc6e1 (patch)
tree489c5e4bf8d8dcf82da8a5b6c0c52c1f5f94159c /include/linux/brcmphy.h
parentr8169: use dev_err_probe in all appropriate places in rtl_init_one() (diff)
downloadwireguard-linux-e8b6f79b41840c542b7ef45c16b31dd17e1cc6e1.tar.xz
wireguard-linux-e8b6f79b41840c542b7ef45c16b31dd17e1cc6e1.zip
net: phy: broadcom: Add LPI counter
Add the ability to read the PHY maintained LPI counter which is in the Clause 45 vendor space, device address 7, offset 0x803F. The counter is cleared on read. Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20230531231729.1873932-1-florian.fainelli@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/brcmphy.h')
-rw-r--r--include/linux/brcmphy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
index e9afbfb6d7a5..251833ab271f 100644
--- a/include/linux/brcmphy.h
+++ b/include/linux/brcmphy.h
@@ -359,6 +359,8 @@
#define LPI_FEATURE_EN 0x8000
#define LPI_FEATURE_EN_DIG1000X 0x4000
+#define BRCM_CL45VEN_EEE_LPI_CNT 0x803f
+
/* Core register definitions*/
#define MII_BRCM_CORE_BASE12 0x12
#define MII_BRCM_CORE_BASE13 0x13