From: Wolfgang Denk Date: Sat, 22 Aug 2009 14:23:47 +0200 Subject: [U-Boot] [PATCH v3][Net] Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API In-Reply-To: <1250822768-18396-1-git-send-email-biggerbadderben@gmail.com> References: <1250822768-18396-1-git-send-email-biggerbadderben@gmail.com> Message-ID: <20090822122347.67870833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ben Warren, In message <1250822768-18396-1-git-send-email-biggerbadderben@gmail.com> you wrote: > All in-tree boards that use this controller have CONFIG_NET_MULTI added > Also: > - changed CONFIG_DRIVER_CS8900 to CONFIG_CS8900 > - changed CS8900_BASE to CONFIG_CS8900_BASE > - changed CS8900_BUS?? to CONFIG_CS8900_BUS?? > - cleaned up line lengths > - modified VCMA9 command function that accesses the device > - removed MAC address initialization from lib_arm/board.c > > Signed-off-by: Ben Warren > --- > > v3: Added accessor macros to ensure proper bus access > v2: Fixed typo: CS8900_BUS32 -> CONFIG_CS8900_BUS32 > Added more descriptive printf in cs8900_init as suggested by Wolfgang > Initialize 'priv' data structure in cs8900_initialize() Tested on "trab" with DEBUG enabled - hard hangs the board even before printing the "Net: CS8900-0" message. OK, gotta fetch a BDI from the office to recover the board... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Program maintenance is an entropy-increasing process, and even its most skilfull execution only delays the subsidence of the system into unfixable obsolescence. - Fred Brooks, "The Mythical Man Month"