[U-Boot-Users] [RFC][PATCH 1/1] Add board_eth_init() function
Haavard Skinnemoen
haavard.skinnemoen at atmel.com
Wed Mar 26 11:25:38 CET 2008
On Wed, 26 Mar 2008 11:14:34 +0100
Stefan Roese <sr at denx.de> wrote:
> > The whole point about this exercise is to get rid of board-specific
> > knowledge in the common code. What is the purpose of cpu_eth_init()?
>
> Because on PPC4xx for example, all boards are using exactly the same eth_init
> code (for the SoC interfaces). And I don't like adding this code to more than
> 80 boards.
All 80 boards have exactly the same ethernet interface (i.e. same kind
of PHY, same MII address, etc.)?
Can't you just add a weak definition of board_eth_init() in the CPU
code then?
Haavard
More information about the U-Boot
mailing list