diff options
author | Michael Walle <michael@walle.cc> | 2020-04-20 20:21:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-22 12:14:18 -0700 |
commit | 0a32f1ff2a2e41404deaba5fb32f8a0d640c0974 (patch) | |
tree | a15fa746b90bc39deaf30b94bc5e15fe607b5515 /include/linux/brcmphy.h | |
parent | b86a0373855bd1792dfc14e215df59c1372894f5 (diff) | |
download | lwn-0a32f1ff2a2e41404deaba5fb32f8a0d640c0974.tar.gz lwn-0a32f1ff2a2e41404deaba5fb32f8a0d640c0974.zip |
net: phy: broadcom: add helper to write/read RDB registers
RDB (Register Data Base) registers are used on newer Broadcom PHYs. Add
helper to read, write and modify these registers.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/brcmphy.h')
-rw-r--r-- | include/linux/brcmphy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h index 7e1d857c8468..897b69309964 100644 --- a/include/linux/brcmphy.h +++ b/include/linux/brcmphy.h @@ -115,6 +115,9 @@ #define MII_BCM54XX_SHD_VAL(x) ((x & 0x1f) << 10) #define MII_BCM54XX_SHD_DATA(x) ((x & 0x3ff) << 0) +#define MII_BCM54XX_RDB_ADDR 0x1e +#define MII_BCM54XX_RDB_DATA 0x1f + /* * AUXILIARY CONTROL SHADOW ACCESS REGISTERS. (PHY REG 0x18) */ |