From: Ben Warren Date: Mon, 23 Jun 2008 23:07:29 -0700 Subject: [U-Boot-Users] [PATCH V4] Add mechanisms for CPU and board-specific Ethernet initialization In-Reply-To: <1213366104-7124-1-git-send-email-biggerbadderben@gmail.com> References: <> <1213366104-7124-1-git-send-email-biggerbadderben@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 13, 2008 at 7:08 AM, Ben Warren 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 > --- > > 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