mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 19:10:53 +09:00
OMAP3: Use sdelay from arch/arm/cpu/armv7/syslib.c instead of cloning that.
There is no need to have such a function twice. Signed-off-by: Alexander Holler <holler@ahsoftware.de> Acked-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
762e63754b
commit
a67fe5f284
@ -92,16 +92,6 @@ u32 omap_boot_device(void)
|
|||||||
#endif /* CONFIG_SPL_BUILD */
|
#endif /* CONFIG_SPL_BUILD */
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
|
||||||
* 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
|
* Routine: secure_unlock
|
||||||
* Description: Setup security registers for access
|
* Description: Setup security registers for access
|
||||||
@ -227,7 +217,7 @@ void s_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
set_muxconf_regs();
|
set_muxconf_regs();
|
||||||
delay(100);
|
sdelay(100);
|
||||||
|
|
||||||
prcm_init();
|
prcm_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user