public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] OMAP3: Use sdelay from arch/arm/cpu/armv7/syslib.c instead of cloning that.
@ 2010-12-18 12:24 Alexander Holler
  2010-12-19  7:54 ` Dirk Behme
  2011-11-18 23:16 ` Anatolij Gustschin
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Holler @ 2010-12-18 12:24 UTC (permalink / raw)
  To: u-boot

There is no need to have such a function twice.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
---
 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();
 
-- 
1.7.2.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-18 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 12:24 [U-Boot] [PATCH] OMAP3: Use sdelay from arch/arm/cpu/armv7/syslib.c instead of cloning that Alexander Holler
2010-12-19  7:54 ` Dirk Behme
2011-11-18 23:16 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox