]> git.sur5r.net Git - u-boot/commitdiff
nitrogen6x: set environment variable reset_cause
authorEric Nelson <eric.nelson@boundarydevices.com>
Sun, 15 Feb 2015 21:37:22 +0000 (14:37 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Feb 2015 09:42:54 +0000 (10:42 +0100)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/boundary/nitrogen6x/nitrogen6x.c

index e8ea256be0c5c8d94198a15d4ed5e0da1cfead06..d46b8db232c98a655123a67f5252fae254468586 100644 (file)
@@ -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;
 }