From: Marek Vasut Date: Wed, 29 Apr 2020 13:04:21 +0000 (+0200) Subject: ARM: imx8m: Do not define do_reset() if sysreset is enabled X-Git-Url: http://git.dujemihanovic.xyz/posts?a=commitdiff_plain;h=efa1a62ad2ddbb47dcaed9fdbdd34c315fdcd883;p=u-boot.git ARM: imx8m: Do not define do_reset() if sysreset is enabled 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 Cc: Fabio Estevam Cc: Flavio Suligoi Cc: Harald Seiler Cc: Igor Opaniuk Cc: Marcel Ziswiler Cc: Oleksandr Suvorov Cc: Peng Fan Cc: Stefano Babic --- diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index c0f6e322dc..0bdc8f2551 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -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;