diff mbox

[U-Boot,2/2] nitrogen6x: set environment variable reset_cause

Message ID 1424036242-742-2-git-send-email-eric.nelson@boundarydevices.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Eric Nelson Feb. 15, 2015, 9:37 p.m. UTC
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
This patch replaces the following two patches, but only applies
to Nitrogen6x and SABRE Lite boards:
	http://patchwork.ozlabs.org/patch/436972/
	http://patchwork.ozlabs.org/patch/436974/
 board/boundary/nitrogen6x/nitrogen6x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic Feb. 17, 2015, 9:34 a.m. UTC | #1
Hi Eric,

On 15/02/2015 22:37, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
> This patch replaces the following two patches, but only applies
> to Nitrogen6x and SABRE Lite boards:
> 	http://patchwork.ozlabs.org/patch/436972/
> 	http://patchwork.ozlabs.org/patch/436974/
>  board/boundary/nitrogen6x/nitrogen6x.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
> index e8ea256..d46b8db 100644
> --- a/board/boundary/nitrogen6x/nitrogen6x.c
> +++ b/board/boundary/nitrogen6x/nitrogen6x.c
> @@ -1018,5 +1018,6 @@ int misc_init_r(void)
>  #ifdef CONFIG_CMD_BMODE
>  	add_board_boot_modes(board_boot_modes);
>  #endif
> +	setenv_hex("reset_cause", get_imx_reset_cause());
>  	return 0;
>  }

After our previous discussion:

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
Stefano Babic Feb. 17, 2015, 9:54 a.m. UTC | #2
On 15/02/2015 22:37, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index e8ea256..d46b8db 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -1018,5 +1018,6 @@  int misc_init_r(void)
 #ifdef CONFIG_CMD_BMODE
 	add_board_boot_modes(board_boot_modes);
 #endif
+	setenv_hex("reset_cause", get_imx_reset_cause());
 	return 0;
 }