ARM: mach-rockchip: tpl: Add hang() and udelay() for rk3036 tpl usage

If CONFIG_TPL_LIBGENERIC_SUPPORT is not defined, we need to implement
the hang() and udelay() for complier error.

Change-Id: I43d4d6c55ba893ef554641b3574297c81dd85c93
Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
David Wu 2018-01-30 11:29:31 +08:00 committed by Kever Yang
parent 51b91a9708
commit 56af001036
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,20 @@ void putc(char c)
}
#endif /* CONFIG_TPL_LIBCOMMON_SUPPORT */
#ifndef CONFIG_TPL_LIBGENERIC_SUPPORT
void udelay(unsigned long usec)
{
__udelay(usec);
}
void hang(void)
{
bootstage_error(BOOTSTAGE_ID_NEED_RESET);
for (;;)
;
}
#endif
u32 spl_boot_device(void)
{
return BOOT_DEVICE_BOOTROM;