Hello,

I'm trying to build the latest version of u-boot for the Hawkboard. In
order to so this successfully, I had to make a small patch in order
for u-boot to recognize the ethernet PHY.

I don't know if this is the proper way of solving this issue, but it
is a working suggestion at least.

I tried to send this patch as an attachment but I got an auto-response
saying that base64-encoded attachments were not allowed. So I will
just paste the patch here realizing that I will probably introduce
some whitespace errors.

>From acf6164774e9d4440c644d1c04ccddb2e6adcc6f Mon Sep 17 00:00:00 2001
From: Tobias Knutsson <tobias.knuts...@gmail.com>
Date: Thu, 25 Mar 2010 14:17:12 +0100
Subject: [PATCH] [Davinci] Support PYHs with MDIO address != 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(-)

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 */
-- 
1.6.0.4


-- 

Hälsningar/Regards
Tobias Knutsson
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to