mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
Generic udelay() with watchdog support
According to the PPC reference implementation the udelay() function is responsible for resetting the watchdog timer as frequently as needed. Most other architectures do not meet that requirement, so long-running operations might result in a watchdog reset. This patch adds a generic udelay() function which takes care of resetting the watchdog before calling an architecture-specific __udelay(). Signed-off-by: Ingo van Lil <inguin@gmx.de>
This commit is contained in:
parent
1c409bc710
commit
3eb90bad65
47 changed files with 98 additions and 62 deletions
|
@ -74,7 +74,7 @@ void putc (const char c)
|
|||
ub_putc(c);
|
||||
}
|
||||
|
||||
void udelay(unsigned long usec)
|
||||
void __udelay(unsigned long usec)
|
||||
{
|
||||
ub_udelay(usec);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue