mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 11:01:33 +00:00
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 <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>
This commit is contained in:
parent
5c7b8a379f
commit
0954dd61ba
2 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = {
|
||||||
{"UMS", "ums"},
|
{"UMS", "ums"},
|
||||||
{"DFU", "dfu"},
|
{"DFU", "dfu"},
|
||||||
{"GPT", "gpt"},
|
{"GPT", "gpt"},
|
||||||
|
{"ENV", "env"},
|
||||||
{"EXIT", ""},
|
{"EXIT", ""},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -132,6 +133,7 @@ mode_info[BOOT_MODE_EXIT + 1] = {
|
||||||
"mass storage",
|
"mass storage",
|
||||||
"firmware update",
|
"firmware update",
|
||||||
"restore",
|
"restore",
|
||||||
|
"default",
|
||||||
"and run normal boot"
|
"and run normal boot"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -142,6 +144,7 @@ mode_cmd[BOOT_MODE_EXIT + 1] = {
|
||||||
"ums 0 mmc 0",
|
"ums 0 mmc 0",
|
||||||
"dfu 0 mmc 0",
|
"dfu 0 mmc 0",
|
||||||
"gpt write mmc 0 $partitions",
|
"gpt write mmc 0 $partitions",
|
||||||
|
"env default -a; saveenv",
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ enum {
|
||||||
BOOT_MODE_UMS,
|
BOOT_MODE_UMS,
|
||||||
BOOT_MODE_DFU,
|
BOOT_MODE_DFU,
|
||||||
BOOT_MODE_GPT,
|
BOOT_MODE_GPT,
|
||||||
|
BOOT_MODE_ENV,
|
||||||
BOOT_MODE_EXIT,
|
BOOT_MODE_EXIT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue