summaryrefslogtreecommitdiff
path: root/include/linux/brcmphy.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-06-10 23:33:59 -0700
committerDavid S. Miller <davem@davemloft.net>2015-06-10 23:33:59 -0700
commit1531407c81830e8b9b0fb00d4f49bcc1ee91dfd1 (patch)
tree2f3b239538e5b2d3bbeeba06d3f74ed9465dc18f /include/linux/brcmphy.h
parentf9c2ff22bb2df7b8f153afd2a4bea07176bad144 (diff)
parentaafc66f106c03336e6e4ab9fd741c2b33110b7be (diff)
Merge branch 'brcm-pseudo-phy-addr'
Florian Fainelli says: ==================== net: phy: broadcom: define pseudo-PHY address This patch series converts existing in-tree users of the Broadcom pseudo-PHY address (30) used to configure MDIO-connected switches to share a constant in a shared header files. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/brcmphy.h')
-rw-r--r--include/linux/brcmphy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
index 656da2a12ffe..697ca7795bd9 100644
--- a/include/linux/brcmphy.h
+++ b/include/linux/brcmphy.h
@@ -1,6 +1,13 @@
#ifndef _LINUX_BRCMPHY_H
#define _LINUX_BRCMPHY_H
+#include <linux/phy.h>
+
+/* All Broadcom Ethernet switches have a pseudo-PHY at address 30 which is used
+ * to configure the switch internal registers via MDIO accesses.
+ */
+#define BRCM_PSEUDO_PHY_ADDR 30
+
#define PHY_ID_BCM50610 0x0143bd60
#define PHY_ID_BCM50610M 0x0143bd70
#define PHY_ID_BCM5241 0x0143bc30