From patchwork Fri Sep 16 15:32:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Schwarz X-Patchwork-Id: 114953 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 57AFAB70D1 for ; Sat, 17 Sep 2011 01:33:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C98A3285D7; Fri, 16 Sep 2011 17:33:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 vkoy5xcOEeWP; Fri, 16 Sep 2011 17:33:28 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A6172861C; Fri, 16 Sep 2011 17:33:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 21CAC2861C for ; Fri, 16 Sep 2011 17:33:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 U6azgkYQBd8t for ; Fri, 16 Sep 2011 17:33:22 +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-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by theia.denx.de (Postfix) with ESMTPS id 45128285D7 for ; Fri, 16 Sep 2011 17:33:20 +0200 (CEST) Received: by fxd18 with SMTP id 18so1695308fxd.3 for ; Fri, 16 Sep 2011 08:33:20 -0700 (PDT) Received: by 10.223.74.89 with SMTP id t25mr34969faj.65.1316187200430; Fri, 16 Sep 2011 08:33:20 -0700 (PDT) Received: from localhost.localdomain (DSL01.212.114.252.242.ip-pool.NEFkom.net. [212.114.252.242]) by mx.google.com with ESMTPS id w6sm10958301fah.0.2011.09.16.08.33.16 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Sep 2011 08:33:19 -0700 (PDT) From: Simon Schwarz To: u-boot@lists.denx.de Date: Fri, 16 Sep 2011 17:32:58 +0200 Message-Id: <1316187178-13700-1-git-send-email-simonschwarzcor@gmail.com> X-Mailer: git-send-email 1.7.4.1 Organization: Corscience GmbH & Co. KG Subject: [U-Boot] [PATCH] armv7: only call save_boot_params for OMAP 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de save_boot_params in start.S got called for all armv7 based cpus. Since the function relys on the OMAP specific bootloader this broke some boards (or to be specific added more errors to already broken ones). This patch wraps the call in #ifdef CONFIG_OMAP. Signed-off-by: Simon Schwarz --- arch/arm/cpu/armv7/start.S | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S index db8e9d2..7cb380c 100644 --- a/arch/arm/cpu/armv7/start.S +++ b/arch/arm/cpu/armv7/start.S @@ -134,7 +134,9 @@ IRQ_STACK_START_IN: */ reset: +#ifdef CONFIG_OMAP bl save_boot_params +#endif /* * set the cpu to SVC32 mode */