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

Eric Nelson eric.nelson at boundarydevices.com
Sun Feb 15 22:37:22 CET 2015


Signed-off-by: Eric Nelson <eric.nelson at 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;
 }
-- 
1.9.1



More information about the U-Boot mailing list