From: Inha Song Date: Fri, 28 Feb 2014 02:17:26 +0000 (+0900) Subject: samsung: misc: add env default option to lcd menu X-Git-Tag: submit/tizen_boot/20140403.091755~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9ae3969baa53c3b8be9a787062ee7767663473d;p=platform%2Fkernel%2Fu-boot.git samsung: misc: add env default option to lcd menu This change allows reset device environment to default without using u-boot console, which is useful for system developers. Signed-off-by: Inha Song Acked-by: Przemyslaw Marczak Cc: Minkyu Kang --- diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 2fd104d0fe..65b5c3052e 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -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", "", }; diff --git a/include/samsung/misc.h b/include/samsung/misc.h index c3d844bc10..10653a1b17 100644 --- a/include/samsung/misc.h +++ b/include/samsung/misc.h @@ -16,6 +16,7 @@ enum { BOOT_MODE_UMS, BOOT_MODE_DFU, BOOT_MODE_GPT, + BOOT_MODE_ENV, BOOT_MODE_EXIT, };