]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
samsung: misc: add env default option to lcd menu
authorInha Song <ideal.song@samsung.com>
Wed, 30 Apr 2014 11:28:08 +0000 (13:28 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 7 May 2014 10:40:39 +0000 (19:40 +0900)
This change allows reset device environment to default without using u-boot
console, which is useful for system developers.

Signed-off-by: Inha Song <ideal.song@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/common/misc.c
include/samsung/misc.h

index 2fd104d0fe747d2057dd2feda7e6c9dbc01e0b41..65b5c3052e339b37c0a100810e5e8ade4f989eb3 100644 (file)
@@ -122,6 +122,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = {
        {"UMS", "ums"},
        {"DFU", "dfu"},
        {"GPT", "gpt"},
+       {"ENV", "env"},
        {"EXIT", ""},
 };
 
@@ -132,6 +133,7 @@ mode_info[BOOT_MODE_EXIT + 1] = {
        "mass storage",
        "firmware update",
        "restore",
+       "default",
        "and run normal boot"
 };
 
@@ -142,6 +144,7 @@ mode_cmd[BOOT_MODE_EXIT + 1] = {
        "ums 0 mmc 0",
        "dfu 0 mmc 0",
        "gpt write mmc 0 $partitions",
+       "env default -a; saveenv",
        "",
 };
 
index c3d844bc109c03ab99272a2c4b0d4856a59b0b6f..10653a1b1789ae63fa424ee9335e13ee7e0f166b 100644 (file)
@@ -16,6 +16,7 @@ enum {
        BOOT_MODE_UMS,
        BOOT_MODE_DFU,
        BOOT_MODE_GPT,
+       BOOT_MODE_ENV,
        BOOT_MODE_EXIT,
 };