[U-Boot] [PATCH 3/3] samsung: misc: add env default option to lcd menu
Przemyslaw Marczak
p.marczak at samsung.com
Fri Feb 28 15:30:42 CET 2014
From: Inha Song <ideal.song at samsung.com>
Change-Id: Idded38acfeb63c909fa22ff1a1b1ec77b46d7515
Signed-off-by: Inha Song <ideal.song at samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak at samsung.com>
cc: Minkyu Kang <mk7.kang at samsung.com>
---
board/samsung/common/misc.c | 3 +++
include/samsung/misc.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index c66d262..0c13aa1 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -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",
"",
};
diff --git a/include/samsung/misc.h b/include/samsung/misc.h
index ac0fc0b..1fb9e38 100644
--- a/include/samsung/misc.h
+++ b/include/samsung/misc.h
@@ -18,6 +18,7 @@ enum {
BOOT_MODE_UMS,
BOOT_MODE_DFU,
BOOT_MODE_GPT,
+ BOOT_MODE_ENV,
BOOT_MODE_EXIT,
};
--
1.7.9.5
More information about the U-Boot
mailing list