
26 Mar
2008
26 Mar
'08
11:25 a.m.
On Wed, 26 Mar 2008 11:14:34 +0100 Stefan Roese sr@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