From patchwork Sun Oct 18 01:41:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 531914 X-Patchwork-Delegate: monstr@monstr.eu 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 C07631402D5 for ; Sun, 18 Oct 2015 12:43:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=Z7kjxXs6; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 95EFA4B741; Sun, 18 Oct 2015 03:42:47 +0200 (CEST) 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 q9IYnnQIHnCA; Sun, 18 Oct 2015 03:42:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 420B44B73C; Sun, 18 Oct 2015 03:42:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF0724B6A7 for ; Sun, 18 Oct 2015 03:41:41 +0200 (CEST) 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 7skFf0RTIOPs for ; Sun, 18 Oct 2015 03:41:41 +0200 (CEST) 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-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by theia.denx.de (Postfix) with ESMTPS id 7B58D4B6B1 for ; Sun, 18 Oct 2015 03:41:37 +0200 (CEST) Received: by igbdj2 with SMTP id dj2so36684375igb.1 for ; Sat, 17 Oct 2015 18:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=uc8jqSqZCalNpEE4ldGzF+XXpdj+Z9R8vsMFpSiVWWw=; b=Z7kjxXs6ZMGW52d5lzBipMFvMle4yzqHzIHPb8sturtMX3DUq+rsu1UosOi9Mooh+A B6J9JHSNqw3HzpFJRJWDR3pF9tQ42QCQvG4JG52yiu/UBKh4jRuToNyfBwRxylChIdPF 0uq50bqGxPt/wuh8pk6bKqPE3huQ29uDHcSztB3ZkA+uiWGMcSFAbC6eR5rSwWb8xiuJ Xt7FausnPl/CoutZ+U8yXkvLYwOC3EBdvD9YXk3T8A3HSiVGak0wJTAstUv1ZRdjJQGh DseF68vO1+MsDN2Nz7zNUiXOTSF1PrTvB0voiC1OyJRRRCDyMJHstfZzHdesX3hAc8eQ LGOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=uc8jqSqZCalNpEE4ldGzF+XXpdj+Z9R8vsMFpSiVWWw=; b=ZMilhnKisCrSZ6q5OJgr0WsXqqQLPW99D9qH3mBPrBfpMLDX90qxb/3K1uLWJqwHby DhrEApvgcEZ3zReYNhU2ufddWxZ47iwuIx1/CHxcV8Skk0jdmEX1y4c4Ov7+R3xLiyit aZxWZnfUIsjNU7QwXnNmut7B9DVXgAO5D8q5xusz+EW4+ytVXPcU27UT9rSUwd/QqA4D ZBnbgUoN9BOhQuzgltZctoiWhajQpeyTn5QMVHtga005LGpEqXwTFnOkKFt0kmt3lSLa RiZ1Cv5fA+ODyoAILJMXAkipCD6W/FHdWVeDWSVwM27M6YT4JV9Hwk76OVA7ZUea1nER gABQ== X-Gm-Message-State: ALoCoQlVbT9eUzFd3soNNRdujzCE85unkC3PTmt6/j3TpQT8nq11pM08xyUX+BWkm8vPqqCyx94F X-Received: by 10.50.225.101 with SMTP id rj5mr13183324igc.93.1445132496168; Sat, 17 Oct 2015 18:41:36 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id s7sm1113041igh.3.2015.10.17.18.41.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 18:41:33 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 6B0B62233DE; Sat, 17 Oct 2015 19:41:32 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 17 Oct 2015 19:41:21 -0600 Message-Id: <1445132487-13172-9-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1445132487-13172-1-git-send-email-sjg@chromium.org> References: <1445132487-13172-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 08/14] arm: zynq: Drop unnecessary code in SPL board_init_f() 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" Move to the new way of starting up SPL. Clearing of BSS and calling board_init_r() is now handled by crt0.S. Also tidy up the header include order. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-zynq/spl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 7bdac3b..1805455 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -7,8 +7,8 @@ #include #include -#include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -17,11 +17,7 @@ void board_init_f(ulong dummy) { ps7_init(); - /* Clear the BSS. */ - memset(__bss_start, 0, __bss_end - __bss_start); - arch_cpu_init(); - board_init_r(NULL, 0); } #ifdef CONFIG_SPL_BOARD_INIT