From patchwork Sun Nov 1 16:36:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 538757 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 15C65141344 for ; Mon, 2 Nov 2015 03:36:50 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=R6IvOD5b; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA0384B923; Sun, 1 Nov 2015 17:36:43 +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 s-Z7M3ghxBqs; Sun, 1 Nov 2015 17:36:43 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 934004B926; Sun, 1 Nov 2015 17:36:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 66C0C4B907 for ; Sun, 1 Nov 2015 17:36:28 +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 6dOIWcRhL07F for ; Sun, 1 Nov 2015 17:36:28 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by theia.denx.de (Postfix) with ESMTPS id 24B0B4B904 for ; Sun, 1 Nov 2015 17:36:23 +0100 (CET) Received: by wmec75 with SMTP id c75so43326187wme.1 for ; Sun, 01 Nov 2015 08:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u7cbHKQwmHODJlm8QLN1rvXQuBEFPc4I7gSpYA3AqjY=; b=R6IvOD5bmf1sLujUCEiu//L0zYO66HOVCJsqPNJXXQm1a6zdyVoQFKlEBo7LXkxQSx 5OkdFJeO9FLi+J7Gx+yqCThWGfDK5LUzoaX6ps6FQD+FbE2Ohayt3d9gGbhyOaolqCtj FeRh4ZLz90vmCTF3IXMQtzQfiZpwns430tNqIHupQsqji4CbelQZkmbGp+zNmOws0rQR FoaAnZeOctE/JAUN2uRewRG7pZn1DK4MPKVA7MsbjWo9XeNtNHYh488/skLmMj4BN9ih RN3EpsXIXUCCoh33Q2vwmyC78G8wx07GCgzlE+JPl0NHD0TtyeQpYXVxz5IylIXvyI1W wMAg== X-Received: by 10.28.138.148 with SMTP id m142mr8289108wmd.79.1446395783156; Sun, 01 Nov 2015 08:36:23 -0800 (PST) Received: from workstation.zombienet.local (pD9EBE3FB.dip0.t-ipconnect.de. [217.235.227.251]) by smtp.gmail.com with ESMTPSA id ly4sm17749385wjb.4.2015.11.01.08.36.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Nov 2015 08:36:22 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Sun, 1 Nov 2015 17:36:13 +0100 Message-Id: <1446395775-29443-2-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1446395775-29443-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1446395775-29443-1-git-send-email-daniel.schwierzeck@gmail.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 1/3] common/board_f: enable setup_board_part1() for MIPS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The variables bd_t:bi_memstart and bd_t:bi_memsize have to be initialized also on MIPS. Otherwise LMB and cmd_bdinfo do not correctly work. This currently breaks the booting of FIT images on MIPS. Enable the board_init_f hook setup_board_part1() for MIPS to fix this. Signed-off-by: Daniel Schwierzeck Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/board_f.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 7632041..a12ac28 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -551,7 +551,7 @@ static int display_new_sp(void) return 0; } -#if defined(CONFIG_PPC) || defined(CONFIG_M68K) +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) static int setup_board_part1(void) { bd_t *bd = gd->bd; @@ -580,7 +580,9 @@ static int setup_board_part1(void) return 0; } +#endif +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) static int setup_board_part2(void) { bd_t *bd = gd->bd; @@ -933,8 +935,10 @@ static init_fnc_t init_sequence_f[] = { reserve_stacks, setup_dram_config, show_dram_config, -#if defined(CONFIG_PPC) || defined(CONFIG_M68K) +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) setup_board_part1, +#endif +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) INIT_FUNC_WATCHDOG_RESET setup_board_part2, #endif