From: Hong Xu Date: Mon, 28 Jul 2008 09:46:23 +0800 Subject: [U-Boot-Users] [PATCH 1/1] Add support for ATMEL AT91SAM9G20EK board In-Reply-To: References: <1516faed0807240105x783bcbd2meaea9ac59e5b9efc@mail.gmail.com> Message-ID: <1516faed0807271846k571a4661qb6b8770d23e5a67c@mail.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 Hi Ben Warren, On Sun, Jul 27, 2008 at 12:51, Ben Warren wrote: > Hi Hong Xu, > > On Thu, Jul 24, 2008 at 1:05 AM, Hong Xu wrote: >> >From 81230b02610c06fdc8a175e635851346488e3bdb Mon Sep 17 00:00:00 2001 >> From: Hong Xu >> Date: Thu, 24 Jul 2008 14:25:05 +0800 >> Subject: [PATCH 1/1] Add support for ATMEL AT91SAM9G20EK board >> >> This patch adds support for ATMEL AT91SAM9G20EK board. >> User manual for AT91SAM9G20EK board, see >> http://www.atmel.com/dyn/resources/prod_documents/doc6413.pdf >> AT91 SAM9G20 datasheet, see >> http://www.atmel.com/dyn/resources/prod_documents/doc6384.pdf >> >> Signed-off-by: Hong Xu >> --- > >> diff --git a/net/eth.c b/net/eth.c >> index 38979aa..3f50e2b 100644 >> --- a/net/eth.c >> +++ b/net/eth.c >> @@ -287,7 +287,7 @@ int eth_initialize(bd_t *bis) >> mcdmafec_initialize(bis); >> #endif >> #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \ >> - defined(CONFIG_AT91SAM9263) >> + defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) >> at91sam9_eth_initialize(bis); >> #endif >> > > Please don't touch net/eth.c. Instead, implement the following in board code: Actually I did NOT touch the logic in net/eth.c. I just said, "hey, since you guys have the logic, please make a call for me.". That's it. :-) Thanks. > > int board_eth_init(bd_t *bis); > > Please be sure to check that the weak version of board_eth_init() is > overridden (the board_eth_init and __def_eth_init symbols should have > different addresses in the object code). You can do something like: > > $ cat System.map | grep eth_init > > regards, > Ben >