summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Seiler <hws@denx.de>2020-04-29 15:04:22 +0200
committerStefano Babic <sbabic@denx.de>2020-05-01 13:46:22 +0200
commit568af926792b1862028a8f1d3599b12b1e150bbf (patch)
treef7a604a2a15b0c03abcde3a5e0b4644424478482
parentefa1a62ad2ddbb47dcaed9fdbdd34c315fdcd883 (diff)
downloadu-boot-568af926792b1862028a8f1d3599b12b1e150bbf.tar.gz
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>
-rw-r--r--arch/arm/mach-imx/imx8m/soc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 0bdc8f2551..f0a0e1bbf8 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -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
*/
}
}