mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
sun6i: cpu_reset: Do not return from cpu_reset()
Currently on sun6i after a "reset" the prompt returns and the user can even type stuff until the watchdog triggers and does the actual reset. This is somewhat unexpected behavior for the "reset" command, this commit adds an endless loop to wait for the watchdog to trigger so that we do not return to the prompt. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
998b8ab3f6
commit
fc175434f9
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ void reset_cpu(ulong addr)
|
|||
writel(WDT_CFG_RESET, &wdog->cfg);
|
||||
writel(WDT_MODE_EN, &wdog->mode);
|
||||
writel(WDT_CTRL_KEY | WDT_CTRL_RESTART, &wdog->ctl);
|
||||
while (1) { }
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue