Hi Ben Warren, On Sun, Jul 27, 2008 at 12:51, Ben Warren <[EMAIL PROTECTED]> wrote: > Hi Hong Xu, > > On Thu, Jul 24, 2008 at 1:05 AM, Hong Xu <[EMAIL PROTECTED]> wrote: >> >From 81230b02610c06fdc8a175e635851346488e3bdb Mon Sep 17 00:00:00 2001 >> From: Hong Xu <[EMAIL PROTECTED]> >> 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 <[EMAIL PROTECTED]> >> --- > <snip> >> 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 > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users