From patchwork Thu Dec 17 12:56:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Semih Hazar X-Patchwork-Id: 71694 X-Patchwork-Delegate: info@emk-elektronik.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 6116ED43F21 for ; Thu, 17 Dec 2009 14:06:17 +0100 (CET) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 4FB60C97CB55 for ; Thu, 17 Dec 2009 14:06:17 +0100 (MET) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Thu, 17 Dec 2009 14:06:17 +0100 (MET) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 17 Dec 2009 14:03:11 +0100 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Thu, 17 Dec 2009 14:03:11 +0100 Received: from scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id 690282001AE; Thu, 17 Dec 2009 14:03:11 +0100 (CET) Received: from mxin-1.m-online.net ([192.168.1.21]) by scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) (amavisd-new, port 10026) with ESMTP id 16707-02; Thu, 17 Dec 2009 14:03:08 +0100 (CET) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id D285B468968; Thu, 17 Dec 2009 14:03:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 94BF528091; Thu, 17 Dec 2009 14:03:02 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dk1UNKAXG+dJ; Thu, 17 Dec 2009 14:03:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 453272808A; Thu, 17 Dec 2009 14:02:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F99D28085 for ; Thu, 17 Dec 2009 14:02:54 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M6bynG7ftEu7 for ; Thu, 17 Dec 2009 14:02:54 +0100 (CET) X-Greylist: delayed 355 seconds by postgrey-1.27 at theia; Thu, 17 Dec 2009 14:02:52 CET Received: from smtp225.iad.emailsrvr.com (smtp225.iad.emailsrvr.com [207.97.245.225]) by theia.denx.de (Postfix) with ESMTP id 069C228080 for ; Thu, 17 Dec 2009 14:02:52 +0100 (CET) Received: from relay12.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay12.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 379CA20D7EA for ; Thu, 17 Dec 2009 07:56:55 -0500 (EST) Received: by relay12.relay.iad.mlsrvr.com (Authenticated sender: semih.hazar-AT-indefia.com) with ESMTPSA id D7C6520EEEC for ; Thu, 17 Dec 2009 07:56:54 -0500 (EST) Message-ID: <4B2A2A95.6070906@indefia.com> Date: Thu, 17 Dec 2009 14:56:53 +0200 From: Semih Hazar User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0 MIME-Version: 1.0 To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] Add misc_init_r support to AVR32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net misc_init_r is available in most other platforms and can be used in board initialization code for late stage stuff. Signed-off-by: Semih Hazar --- lib_avr32/board.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib_avr32/board.c b/lib_avr32/board.c index 57115df..7459e21 100644 --- a/lib_avr32/board.c +++ b/lib_avr32/board.c @@ -354,6 +354,11 @@ void board_init_r(gd_t *new_gd, ulong dest_addr) jumptable_init(); console_init_r(); +#if defined(CONFIG_MISC_INIT_R) + /* miscellaneous platform dependent initialisations */ + misc_init_r(); +#endif + s = getenv("loadaddr"); if (s) load_addr = simple_strtoul(s, NULL, 16);