net: phy: broadcom: define Broadcom pseudo-PHY address in brcmphy.h
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 11 Jun 2015 01:07:58 +0000 (18:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 06:33:58 +0000 (23:33 -0700)
Define the pseudo-PHY address (30) which is used by all Broadcom
Ethernet switches in a shared header file.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/brcmphy.h

index abb6106..697ca77 100644 (file)
@@ -3,6 +3,11 @@
 
 #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