diff mbox series

[5/5] riscv: sifive: fu540: Add gpio-restart support

Message ID 1592890186-18082-5-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit cdae446461191714d692190da1ad4344398adc57
Delegated to: Andes
Headers show
Series [1/5] sysreset: syscon: Don't assume default value for offset and mask property | expand

Commit Message

Bin Meng June 23, 2020, 5:29 a.m. UTC
From: Bin Meng <bin.meng@windriver.com>

The HiFive Unleashed board wires GPIO pin#10 to the input of the
system reset signal. This adds gpio reboot support.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

 board/sifive/fu540/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sagar Shrikant Kadam June 26, 2020, 4:10 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: Bin Meng <bmeng.cn@gmail.com>
> Sent: Tuesday, June 23, 2020 11:00 AM
> To: Rick Chen <rick@andestech.com>; Simon Glass <sjg@chromium.org>;
> Pragnesh Patel <pragnesh.patel@sifive.com>; Sagar Kadam
> <sagar.kadam@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> Cc: Bin Meng <bin.meng@windriver.com>
> Subject: [PATCH 5/5] riscv: sifive: fu540: Add gpio-restart support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> From: Bin Meng <bin.meng@windriver.com>
> 
> The HiFive Unleashed board wires GPIO pin#10 to the input of the system
> reset signal. This adds gpio reboot support.
> 
> Signed-off-by: Bin Meng <bin.meng@windriver.com>
> ---
> 
>  board/sifive/fu540/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig index
> 86193d7..6f65681 100644
> --- a/board/sifive/fu540/Kconfig
> +++ b/board/sifive/fu540/Kconfig
> @@ -65,5 +65,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
>         imply SMP
>         imply MISC
>         imply SIFIVE_OTP
> +       imply SYSRESET
> +       imply SYSRESET_GPIO
> 

Looks Good.
Reviewed-by: Sagar Kadam <sagar.kadam@sifive.com>
Tested-by: Sagar Kadam <sagar.kadam@sifive.com>

>  endif
> --
> 2.7.4
Pragnesh Patel June 26, 2020, 7:07 a.m. UTC | #2
>-----Original Message-----
>From: Bin Meng <bmeng.cn@gmail.com>
>Sent: 23 June 2020 11:00
>To: Rick Chen <rick@andestech.com>; Simon Glass <sjg@chromium.org>;
>Pragnesh Patel <pragnesh.patel@sifive.com>; Sagar Kadam
><sagar.kadam@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
>Cc: Bin Meng <bin.meng@windriver.com>
>Subject: [PATCH 5/5] riscv: sifive: fu540: Add gpio-restart support
>
>[External Email] Do not click links or attachments unless you recognize the
>sender and know the content is safe
>
>From: Bin Meng <bin.meng@windriver.com>
>
>The HiFive Unleashed board wires GPIO pin#10 to the input of the system
>reset signal. This adds gpio reboot support.
>
>Signed-off-by: Bin Meng <bin.meng@windriver.com>
>---
>
> board/sifive/fu540/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)

Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
diff mbox series

Patch

diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
index 86193d7..6f65681 100644
--- a/board/sifive/fu540/Kconfig
+++ b/board/sifive/fu540/Kconfig
@@ -65,5 +65,7 @@  config BOARD_SPECIFIC_OPTIONS # dummy
 	imply SMP
 	imply MISC
 	imply SIFIVE_OTP
+	imply SYSRESET
+	imply SYSRESET_GPIO
 
 endif