From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darius Augulis Date: Wed, 01 Jul 2009 21:19:49 +0300 Subject: [U-Boot] net: gpio PHY driver In-Reply-To: <4A4BA6FF.4060802@RuggedCom.com> References: <4A4B586F.3080903@ge.com> <4A4BA6FF.4060802@RuggedCom.com> Message-ID: <4A4BA8C5.3020101@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/01/2009 09:12 PM, Richard Retanubun wrote: > Darius Augulis wrote: >> On 07/01/2009 03:37 PM, Jerry Van Baren wrote: >>> Darius Augulis wrote: >>>> Hi, >>>> >>>> I need to control RGMII PHY connected to GPIO. >>>> Seems there isn't such driver in u-boot. >>>> I would like to discuss how is better to implement this? >>>> I could port mdio_gpio driver from Linux Kernel, >>>> but u-boot does not have universal gpio driver. >>>> Off course I could make this very board specific, but It may be useful for >>>> other boards, interfacing PHY with GPIO's. >>>> >>>> Any ideas welcome! >>>> >>>> Darius A. >>> It sounds like you are looking for CONFIG_BITBANGMII. >> Probably. Even it has MPC specific things, I guess should be easy to >> re-use it in my system. > > Wow, what a coincidence! > Just in case you system is MPC83XX based, I just submitted a patch for consideration > that adds bitbang SMI to uec_phy.c No, my system is not MPC based. I'm working on new board and CPU (Gemini) support in u-boot. My SoC has two GMAC controllers. btw, what is the right way to add new Ethernet driver? Should I define CONFIG_CMD_NET and CONFIG_NET_MULTI in my board config? Or should I define eth_* funtions right in the driver code? > > see: http://article.gmane.org/gmane.comp.boot-loaders.u-boot/62640 > > - Richard