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

Ben Warren biggerbadderben at gmail.com
Tue Jun 24 08:07:29 CEST 2008


On Fri, Jun 13, 2008 at 7:08 AM, Ben Warren <biggerbadderben at gmail.com> wrote:
> This patch is the first step in cleaning up net/eth.c, by moving Ethernet
> initialization to CPU or board-specific code.  Initial implementation is
> only on the Freescale TSEC controller, but others will be added soon.
>
> Signed-off-by: Ben Warren <biggerbadderben at gmail.com>
> ---
>
> This time around, instead of adding code to each board that implements TSEC, I
> implemented cpu_eth_init() in all architectures that have TSEC.  Preferably,
> this would have gone in new files in the CPU directories, but 'ld' made it
> impossible to guarantee that the code would be linked into the final executable.
> Also, don't need include/netdev.h for now.
>
>  cpu/mpc83xx/cpu.c |   20 ++++++++++++++++++++
>  cpu/mpc85xx/cpu.c |   30 ++++++++++++++++++++++++++++++
>  cpu/mpc86xx/cpu.c |   27 +++++++++++++++++++++++++++
>  net/eth.c         |   31 +++++++++++++++----------------
>  4 files changed, 92 insertions(+), 16 deletions(-)
>

There have been no comments in 11 days, so I pushed this to the 'next'
branch of the net repo on git.denx.de.

regards,
Ben




More information about the U-Boot mailing list