]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: enable _machine_restart for spl
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 12 Nov 2020 08:35:38 +0000 (16:35 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 24 Jan 2021 20:39:26 +0000 (21:39 +0100)
The sysreset driver has a config CONFIG_SPL_SYSRESET for the spl stage.
Change CONFIG_SYSRESET to CONFIG_IS_ENABLED(SYSRESET) will give spl a
chance to use _machine_restart instead of the sysreset driver.

Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/cpu/cpu.c

index 7d5c9fd83aee5b2794e24d2100c5dbbb72e2d6e9..b304026a67c72545d5c785ee1767ac155d021fac 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/mipsregs.h>
 #include <asm/reboot.h>
 
-#ifndef CONFIG_SYSRESET
+#if !CONFIG_IS_ENABLED(SYSRESET)
 void __weak _machine_restart(void)
 {
        fprintf(stderr, "*** reset failed ***\n");