mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
ARM: imx8m: Fix indentation of reset_cpu() function
Use proper code-style, tabs instead of spaces for indentation. Signed-off-by: Harald Seiler <hws@denx.de>
This commit is contained in:
parent
efa1a62ad2
commit
568af92679
1 changed files with 5 additions and 2 deletions
|
@ -412,14 +412,17 @@ int ft_system_setup(void *blob, bd_t *bd)
|
|||
#if !CONFIG_IS_ENABLED(SYSRESET)
|
||||
void reset_cpu(ulong addr)
|
||||
{
|
||||
struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;
|
||||
struct watchdog_regs *wdog = (struct watchdog_regs *)addr;
|
||||
|
||||
if (!addr)
|
||||
wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;
|
||||
|
||||
/* Clear WDA to trigger WDOG_B immediately */
|
||||
writew((SET_WCR_WT(1) | WCR_WDT | WCR_WDE | WCR_SRS), &wdog->wcr);
|
||||
|
||||
while (1) {
|
||||
/*
|
||||
* spin for 1 second before timeout reset
|
||||
* spin for .5 seconds before reset
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue