]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
nitrogen6x: set environment variable reset_cause
authorEric Nelson <eric.nelson@boundarydevices.com>
Sun, 15 Feb 2015 21:37:22 +0000 (14:37 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:50 +0000 (13:53 +0200)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/boundary/nitrogen6x/nitrogen6x.c

index c84c220047f3ab82cfcd3ac75cfff002f3e55ea7..5223ebf7d180ad4f0320ac6e6ec59bc979fb431c 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;
 }