From: Sean Anderson Date: Wed, 24 Jun 2020 10:41:20 +0000 (-0400) Subject: riscv: Allow use of reset drivers X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=958a3f464c7f8ef7e10db9feb663e9e80445ce2f;p=u-boot.git riscv: Allow use of reset drivers Currently, one cannot use a reset driver on RISC-V. Follow the MIPS example, and disable the default reset handler when the sysreset driver is enabled. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng --- diff --git a/arch/riscv/lib/reset.c b/arch/riscv/lib/reset.c index 8779c619cc..6008bbe78e 100644 --- a/arch/riscv/lib/reset.c +++ b/arch/riscv/lib/reset.c @@ -7,6 +7,7 @@ #include #include +#ifndef CONFIG_SYSRESET int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { printf("resetting ...\n"); @@ -16,3 +17,4 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return 0; } +#endif