[U-Boot] AMCC 405EX - EMAC0 + EMAC1 Problems

Wolfgang Denk wd at denx.de
Thu Sep 17 22:04:48 CEST 2009


Dear Jonathan Haws,

In message <BB99A6BA28709744BF22A68E6D7EB51F0324BBB96D at midas.usurf.usu.edu> you wrote:
> 
> I am having issues getting EMAC1 working alongside EMAC0.  We need 
> both EMACs running at the same time in U-Boot (U-Boot handles the PHY 
> configuration, since the VxWorks implementation of PHY initialization 
> is buggy).

Hm... Note that such code will probably not go into mainline. The
principle in U-Boot is not to initialize any devices that are not
used by U-Boot itself, so unless you use a network related command in
U-Boot, none of the Ethenret interfaces shall be initialized; and
U-Boot never uses more than one at a time in any case.

> What I have done is this:
> 
> In net/eth.c I have modified the eth_init(bd_t *bis) function to 
> simply initialize both EMACs (line 443).  We use EMAC0 by default, so 
> I set eth_current back to EMAC0 when I am finished and return 0 on 
> success.  Here is what the function looks like right now:  (I know I 
> can clean this up better, but I am looking for a first cut solution 
> that works.  When I have it working, I will clean up the code.)

NAK. This will not go into mainline.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are three ways to get something done:
        (1) Do it yourself.
        (2) Hire someone to do it for you.
        (3) Forbid your kids to do it.


More information about the U-Boot mailing list