MAINLINE samsung: misc: add env default option to lcd menu
authorInha Song <ideal.song@samsung.com>
Fri, 28 Feb 2014 02:17:26 +0000 (11:17 +0900)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 31 Mar 2014 09:06:57 +0000 (11:06 +0200)
Change-Id: Idded38acfeb63c909fa22ff1a1b1ec77b46d7515
Signed-off-by: Inha Song <ideal.song@samsung.com>
board/samsung/common/misc.c
include/samsung/misc.h

index 96fb441..9c85a86 100644 (file)
@@ -121,6 +121,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = {
        {"UMS", "ums"},
        {"DFU", "dfu"},
        {"GPT", "gpt"},
+       {"ENV", "env"},
        {"EXIT", ""},
 };
 
@@ -131,6 +132,7 @@ mode_info[BOOT_MODE_EXIT + 1] = {
        "mass storage",
        "firmware update",
        "restore",
+       "default",
        "and run normal boot"
 };
 
@@ -141,6 +143,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 ac0fc0b..1fb9e38 100644 (file)
@@ -18,6 +18,7 @@ enum {
        BOOT_MODE_UMS,
        BOOT_MODE_DFU,
        BOOT_MODE_GPT,
+       BOOT_MODE_ENV,
        BOOT_MODE_EXIT,
 };