Skip to contentSkip to conversation

Revert "riscv: Allow use of reset drivers"

PATCH New Bin Meng 1 participant 2 messages Jul 20, 2020

Subsystems (2)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH v2 1/2 Revert "riscv: Allow use of reset drivers"

From: Bin Meng <[email protected]>

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.

---

(no changes since v1)

 arch/riscv/lib/reset.c | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/lib/reset.c +0 -2
index 6008bbe..8779c61 100644
@@ -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
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 2/2 Revert "Revert "riscv: sifive: fu540: Add gpio-restart support""

From: Bin Meng <[email protected]>

This reverts commit 23da3c682a84a2ad67a67287979dd4f5259ff607.

Now the build failure of sifive_fu540_defconfig board has been fixed, revert this "revert patch".

---

Changes in v2:
- rebase on top of u-boot-riscv/master

 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
board/sifive/fu540/Kconfig +2 -0
index 4aa1e4c..f3217f6 100644
@@ -68,5 +68,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply SIFIVE_OTP
 	imply DM_PWM
 	imply PWM_SIFIVE
+	imply SYSRESET
+	imply SYSRESET_GPIO
 
 endif
Signature · 1 line
2.7.4