projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8bc120
)
riscv: Allow use of reset drivers
author
Sean Anderson
<seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:20 +0000
(06:41 -0400)
committer
Andes
<uboot@andestech.com>
Wed, 1 Jul 2020 07:01:22 +0000
(15:01 +0800)
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>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/lib/reset.c
patch
|
blob
|
history
diff --git
a/arch/riscv/lib/reset.c
b/arch/riscv/lib/reset.c
index 8779c619cc5abd1ab4f388bac9054b6786281ecc..6008bbe78e762534d2edf2ac7a88193de13a177d 100644
(file)
--- a/
arch/riscv/lib/reset.c
+++ b/
arch/riscv/lib/reset.c
@@
-7,6
+7,7
@@
#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");
@@
-16,3
+17,4
@@
int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
return 0;
}
+#endif