Skip to contentSkip to conversation

Support PYHs with MDIO address !=3D 0

PATCH New Tobias Knutsson 1 participant 1 message Mar 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support PYHs with MDIO address !=3D 0

Insert ifdef statement to allow board configuration to override default PHY MDIO address.

---
 include/asm-arm/arch-davinci/emac_defs.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/include/asm-arm/arch-davinci/emac_defs.h
index b0ec8f5..dabd15d 100644

include/asm-arm/arch-davinci/emac_defs.h +2 -0
@@ -85,7 +85,9 @@
 #endif
 
 /* PHY mask - set only those phy number bits where phy is/can be connected=
 */
+#ifndef EMAC_MDIO_PHY_NUM
 #define EMAC_MDIO_PHY_NUM           1
+#endif
 #define EMAC_MDIO_PHY_MASK          (1 << EMAC_MDIO_PHY_NUM)
 

/* Ethernet Min/Max packet size */
--=20
1.6.0.4

--=20

H=E4lsningar/Regards
Tobias Knutsson