From patchwork Fri Mar 24 03:34:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyou Yang X-Patchwork-Id: 743049 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vq8RF3k90z9s82 for ; Fri, 24 Mar 2017 14:43:53 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id AE5B2C21C5F; Fri, 24 Mar 2017 03:42:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 349A1C21BE6; Fri, 24 Mar 2017 03:42:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 72B08C21C2E; Fri, 24 Mar 2017 03:42:08 +0000 (UTC) Received: from ussmtp01.atmel.com (nasmtp01.atmel.com [192.199.1.245]) by lists.denx.de (Postfix) with ESMTPS id AD2EEC21C47 for ; Fri, 24 Mar 2017 03:42:05 +0000 (UTC) Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG01.corp.atmel.com (10.42.103.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 23 Mar 2017 21:41:57 -0600 Received: from shaarm01.corp.atmel.com (10.168.254.13) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server id 14.3.235.1; Fri, 24 Mar 2017 11:47:11 +0800 From: Wenyou Yang To: U-Boot Mailing List Date: Fri, 24 Mar 2017 11:34:05 +0800 Message-ID: <20170324033406.16457-4-wenyou.yang@atmel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170324033406.16457-1-wenyou.yang@atmel.com> References: <20170324033406.16457-1-wenyou.yang@atmel.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 3/4] ARM: spl: atmel: move mem_init() advance in SPL init. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Because the MMC SPL puts the bbs section in the ddr memory, move calling mem_init() before calling spl_init(). Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/spl_atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 847a30b9a9..b75c2ccefd 100644 --- a/arch/arm/mach-at91/spl_atmel.c +++ b/arch/arm/mach-at91/spl_atmel.c @@ -101,6 +101,8 @@ void board_init_f(ulong dummy) board_early_init_f(); + mem_init(); + ret = spl_init(); if (ret) { debug("spl_init() failed: %d\n", ret); @@ -109,5 +111,4 @@ void board_init_f(ulong dummy) preloader_console_init(); - mem_init(); }