From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lear Date: Tue, 01 Sep 2009 16:39:50 +0100 Subject: [U-Boot] Obtaining board specific phy diagnostics In-Reply-To: <4A9D1EDC.9010608@bubblegen.co.uk> References: <4A9D1EDC.9010608@bubblegen.co.uk> Message-ID: <4A9D4046.7050900@bubblegen.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Matthew Lear wrote: > Hi all, > > Is there a common mechanism to hook in board specific ethernet phy > commands? For example, I'd like to hook in the ability to read the TDR > characteristics of the ethernet cable connected to my board. I know the > phy on my board supports this so I was planning on hooking it into the > mii command set somehow. > > Currently, the ethernet set up code registers phy read and write > routines, but that is all. Is there a recognised method / approach to > add such board specific commands/features into an existing 'common' command? > > Cheers, > -- Matt > A board specific command is fine, so using U_BOOT_CMD. -- Matt