diff mbox series

[v3,08/12] riscv: Allow use of reset drivers

Message ID 7e786f8a-48df-f3f4-603f-61ab62b1e10a@gmail.com
State Superseded
Delegated to: Andes
Headers show
Series riscv: Add Sipeed Maix support | expand

Commit Message

Sean Anderson Feb. 2, 2020, 8:06 p.m. UTC
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 <seanga2@gmail.com>
---
  Changes for v3:
  - New

 arch/riscv/lib/reset.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Bin Meng Feb. 4, 2020, 11:22 a.m. UTC | #1
On Mon, Feb 3, 2020 at 4:06 AM Sean Anderson <seanga2@gmail.com> wrote:
>
> 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 <seanga2@gmail.com>
> ---
>   Changes for v3:
>   - New
>
>  arch/riscv/lib/reset.c | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox series

Patch

diff --git a/arch/riscv/lib/reset.c b/arch/riscv/lib/reset.c
index b8cecb309d..6cf6387f10 100644
--- a/arch/riscv/lib/reset.c
+++ b/arch/riscv/lib/reset.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <command.h>
 
+#ifndef CONFIG_SYSRESET
 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	printf("resetting ...\n");
@@ -15,3 +16,4 @@  int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return 0;
 }
+#endif