From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 4 Sep 2008 17:34:19 +0200 Subject: [U-Boot] [PATCH 1/1 v3] ppc4xx: Add support for GPCS, SGMII and M88E1112 PHY In-Reply-To: <48BF8DB3.70104@gmail.com> References: <1220424317-6335-1-git-send-email-vgallardo@amcc.com> <200809030922.37800.sr@denx.de> <48BF8DB3.70104@gmail.com> Message-ID: <200809041734.19573.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 Thursday 04 September 2008, Ben Warren wrote: > I like the idea very much, but am not sure about the implementation. > This problem has been around for a while (just search the archives for > people wondering how to deal with a switch chip connected via rvMII or > whatever). The trickiest part of this is how to get the information to > the driver. I've always thought that the best way would be for board > code to initialize each controller through proper C code (i.e. not > CONFIG macros). But there's definitely something to be said for doing > it all through macros, since that's how Kconfig works. Please have a > look at the code that Andy Fleming recently submitted for the TSEC > driver (it's in the main branch now). He passes a tsec_info_struct into > each call of tsec_initialize(), allowing all type of custom information > to go in. In my mind, that could be generalized to something that more > than just TSEC, but let's take baby steps. Yes, this looks like a good approach. Not sure if we should go all the way or accept Victors approach for now. Moving to this parameter based initialization is a different matter that should really be done soon. > Incidentally, the term "Fixed PHY" has already been coined for what > you're calling "PHY-less". I suggest we standardize. Yes. Is there already a define available? > Anyway, I have to go to bed. Eyes are starting to close and brain's > sloowwwiing doowwn. Heh :) 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 =====================================================================