[PATCH] [Davinci] Support PYHs with MDIO address !=3D 0

Tobias Knutsson tobias.knutsson at gmail.com
Thu Mar 25 14:17:12 CET 2010


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(-)

diff --git a/include/asm-arm/arch-davinci/emac_defs.h
b/include/asm-arm/arch-davinci/emac_defs.h
index b0ec8f5..dabd15d 100644
--- a/include/asm-arm/arch-davinci/emac_defs.h
+++ b/include/asm-arm/arch-davinci/emac_defs.h
@@ -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


More information about the U-Boot mailing list