[U-Boot] [PATCH 1/2] Davinci: Fixed wrong EMAC_MDIO_PHY_MASK

andreas.gaer at baslerweb.com andreas.gaer at baslerweb.com
Wed Apr 21 10:27:02 CEST 2010


From: Andreas Gaeer <Andreas.Gaer at baslerweb.com>

Signed-off-by: Andreas Gaeer <Andreas.Gaer at baslerweb.com>
---
 arch/arm/include/asm/arch-davinci/emac_defs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/arch-davinci/emac_defs.h b/arch/arm/include/asm/arch-davinci/emac_defs.h
index b0ec8f5..baee6aa 100644
--- a/arch/arm/include/asm/arch-davinci/emac_defs.h
+++ b/arch/arm/include/asm/arch-davinci/emac_defs.h
@@ -86,7 +86,7 @@
 
 /* PHY mask - set only those phy number bits where phy is/can be connected */
 #define EMAC_MDIO_PHY_NUM           1
-#define EMAC_MDIO_PHY_MASK          (1 << EMAC_MDIO_PHY_NUM)
+#define EMAC_MDIO_PHY_MASK          ((1 << EMAC_MDIO_PHY_NUM)-1)
 
 /* Ethernet Min/Max packet size */
 #define EMAC_MIN_ETHERNET_PKT_SIZE	60
-- 
1.7.0.3



More information about the U-Boot mailing list