diff options
author | Weijie Gao | 2020-11-12 16:35:38 +0800 |
---|---|---|
committer | Daniel Schwierzeck | 2021-01-24 21:39:26 +0100 |
commit | 50d34f0eaaee6fcdbb30a36097c7a0ecf20c3b87 (patch) | |
tree | d093e8453204932c9ebb67af21ae725692541d4d /arch | |
parent | 9bf72ba6f68f7c96b0913bfc35ae423e9b1895d5 (diff) |
mips: enable _machine_restart for spl
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/cpu/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c index 7d5c9fd83ae..b304026a67c 100644 --- a/arch/mips/cpu/cpu.c +++ b/arch/mips/cpu/cpu.c @@ -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"); |