From patchwork Sat Dec 18 12:24:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Holler X-Patchwork-Id: 76068 X-Patchwork-Delegate: agust@denx.de 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 6E31EB6ED0 for ; Sat, 18 Dec 2010 23:24:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2607B2808D; Sat, 18 Dec 2010 13:24:38 +0100 (CET) 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 u9QFkWP6tFEy; Sat, 18 Dec 2010 13:24:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9002128090; Sat, 18 Dec 2010 13:24:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0BC4D28090 for ; Sat, 18 Dec 2010 13:24:35 +0100 (CET) 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 4qXSIe-5DdJi for ; Sat, 18 Dec 2010 13:24:33 +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.ahsoftware.de (h1047321.serverkompetenz.net [85.214.67.163]) by theia.denx.de (Postfix) with ESMTPS id 05A712808D for ; Sat, 18 Dec 2010 13:24:31 +0100 (CET) Received: by mail.ahsoftware.de (Postfix, from userid 65534) id 9A4179C14E; Sat, 18 Dec 2010 13:24:31 +0100 (CET) Received: from eiche.ahsoftware (p57B20F2F.dip0.t-ipconnect.de [87.178.15.47]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTP id 0E8B79C14E; Sat, 18 Dec 2010 13:24:29 +0100 (CET) Received: from beagle.ahsoftware (conradbt.ahsoftware [192.168.213.4]) by eiche.ahsoftware (Postfix) with ESMTP id 7CCC03FC75; Sat, 18 Dec 2010 13:24:26 +0100 (CET) From: Alexander Holler To: u-boot@lists.denx.de Date: Sat, 18 Dec 2010 13:24:20 +0100 Message-Id: <1292675060-3971-1-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.7.2.2 Subject: [U-Boot] [PATCH] OMAP3: Use sdelay from arch/arm/cpu/armv7/syslib.c instead of cloning that. 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 There is no need to have such a function twice. Signed-off-by: Alexander Holler Acked-by: Dirk Behme --- arch/arm/cpu/armv7/omap3/board.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index 6c2a132..0e62626 100644 --- a/arch/arm/cpu/armv7/omap3/board.c +++ b/arch/arm/cpu/armv7/omap3/board.c @@ -41,16 +41,6 @@ extern omap3_sysinfo sysinfo; /****************************************************************************** - * Routine: delay - * Description: spinning delay to use before udelay works - *****************************************************************************/ -static inline void delay(unsigned long loops) -{ - __asm__ volatile ("1:\n" "subs %0, %1, #1\n" - "bne 1b":"=r" (loops):"0"(loops)); -} - -/****************************************************************************** * Routine: secure_unlock * Description: Setup security registers for access * (GP Device only) @@ -189,7 +179,7 @@ void s_init(void) setup_auxcr(); set_muxconf_regs(); - delay(100); + sdelay(100); prcm_init();