From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 21 Nov 2007 16:08:22 +0100 Subject: [U-Boot-Users] PHY library? In-Reply-To: <47444864.30509@qstreams.com> References: <13876488.post@talk.nabble.com> <47444864.30509@qstreams.com> Message-ID: <200711211608.23262.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 21 November 2007, Ben Warren wrote: > > I have a new PHY that needs to be handled in U-boot. Now this PHY is used > > in two differenet ports - TSEC & UCC (it's an MPC8568 board). The problem > > is that now I need to duplicate the handling of this PHY in both the TSEC > > and UCC drivers. Wouldn't it be better if U-boot had an indepedent PHY > > library (as in Linux) used by the different Ethernet drivers? > > Regards, > > David. > > Absolutely. In fact, I'm working on one right now... That's great news. Thanks. > Access methods to > PHYs are currently common (miiphybb.c and miiphyutil.c) but there's no > reason why the TSEC, UCC and other drivers should have hard wiring for > individual PHY devices. Any design suggestions you or others have are > welcome. Not really. Just "Go Ben, go go go ...!" ;) Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================