]> Git Repo - u-boot.git/commitdiff
ARM: imx8m: Do not define do_reset() if sysreset is enabled
authorMarek Vasut <[email protected]>
Wed, 29 Apr 2020 13:04:21 +0000 (15:04 +0200)
committerStefano Babic <[email protected]>
Fri, 1 May 2020 11:46:22 +0000 (13:46 +0200)
The SPL can also be compiled with sysreset drivers just fine, so
update the condition to cater for that option.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Flavio Suligoi <[email protected]>
Cc: Harald Seiler <[email protected]>
Cc: Igor Opaniuk <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Oleksandr Suvorov <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
arch/arm/mach-imx/imx8m/soc.c

index c0f6e322dcf6e27ab7458be42f10f34cc6120ec0..0bdc8f2551e45f5e4bc16ca58cd4c9ef6e164fbc 100644 (file)
@@ -409,7 +409,7 @@ int ft_system_setup(void *blob, bd_t *bd)
 }
 #endif
 
-#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SYSRESET)
+#if !CONFIG_IS_ENABLED(SYSRESET)
 void reset_cpu(ulong addr)
 {
        struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;
This page took 0.031464 seconds and 4 git commands to generate.