]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "riscv: Allow use of reset drivers"
authorBin Meng <bin.meng@windriver.com>
Mon, 20 Jul 2020 03:06:45 +0000 (20:06 -0700)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:55:31 +0000 (14:55 +0800)
This reverts commit 958a3f464c7f8ef7e10db9feb663e9e80445ce2f.

A more appropriate change below is already in mainline.
Commit fd31e4fd184f ("riscv: Do not build reset.c if SYSRESET is on")

Revert this patch, so that U-Boot can be built successfully for
SiFive Fu540 board.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Liang <ycliang@andestech.com>
arch/riscv/lib/reset.c

index 6008bbe78e762534d2edf2ac7a88193de13a177d..8779c619cc5abd1ab4f388bac9054b6786281ecc 100644 (file)
@@ -7,7 +7,6 @@
 #include <command.h>
 #include <hang.h>
 
-#ifndef CONFIG_SYSRESET
 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("resetting ...\n");
@@ -17,4 +16,3 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 
        return 0;
 }
-#endif