From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Fri, 21 Mar 2008 22:46:15 -0400 Subject: [U-Boot-Users] [RFC][PATCH 0/1] New Ethernet initialization Message-ID: <47E472F7.7080508@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, By any measure, net/eth.c is messy and only gets worse as each new Ethernet controller gets added. This patch moves initialization to board code, providing the following benefits: 1. Board developers have more control over the ordering of Ethernet interfaces on a board, and can easily instantiate several different interfaces. This will make a PHY library easier to implement. 2. Ethernet controllers are decoupled from the net library. 3. /net/eth.c will become much smaller and easier to read. I've initially implemented only on TSEC, because I have a couple of different boards with this controller (MPC8349EMDS and MPC8555CDS) and am able to test it. Note that in this patch the TSEC driver itself isn't touched - only where it's initialized. If feedback is positive, I'll port all other in-tree controllers and boards and will put in a branch of the net tree. Hopefully volunteers will line up to sanity test. Please have a look and let me know your thoughts. regards, Ben