From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mirco Fuchs Date: Thu, 10 Aug 2006 12:43:14 +0200 Subject: [U-Boot-Users] Configuration of the PHY address In-Reply-To: <44D8E5ED.20010.203AF05@mircofuchs.web.de> Message-ID: <44DB29E2.1216.B85F3C@mircofuchs.web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > I suggest to introduce a new macro (e. g. CFG_PHY_ADDRESS) that can > be set by the user in the board specific header file. I've just found that there is allready a macro called CONFIG_PHY_ADDR which is doing exactly what i want - sorry for the waste. But the ethernet driver for the at91rm9200 does not support this macro. I'll modify the functions at91rm9200_EmacWritePhy() and at91rm9200_EmacReadPhy() and provide a patch. BTW: The PHY drivers for the at91rm9200 (bcm5221.c, dm9161) are using the functions at91rm9200_Emac...Phy() to access the PHY. Why do they not use the miiphy_...() functions defined in miiphy.h? Best Regards Mirco