[U-Boot-Users] [PATCH] Add mechanisms for CPU and board-specific Ethernet initialization

Stefan Roese sr at denx.de
Tue Jun 10 17:25:37 CEST 2008


On Tuesday 10 June 2008, Shinya Kuribayashi wrote:
> >> Shouldn't this be the other way around?
> >>
> >> +       if (board_eth_init(bis) < 0)
> >> +               eth_eth_init(bis);
> >>
> >> So that the board init routine can "overwrite" the cpu init version.
> >
> > Yeah, I think you're right.  If board_eth_init() exists, it gets
> > highest priority.
>
> Just wondered, does that mean we could only have either cpu_eth_init or
> board_eth_init at a time?

Not really. board_eth_init() could call cpu_eth_init() if necessary.

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
=====================================================================




More information about the U-Boot mailing list