From: Przemyslaw Marczak
Date: Mon, 7 Apr 2014 15:21:13 +0000 (+0200)
Subject: samsung: misc: menu: new option: battery charge level
X-Git-Tag: submit/tizen_common/20140513.150414~6
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=631ac85ad2c711b4997746a726c15887a57f36eb;p=platform%2Fkernel%2Fu-boot.git
samsung: misc: menu: new option: battery charge level
This change adds new option to lcd menu which allows
check battery state. In case if battery level is greater
than boot level threshold (20%), battery screen is not
displayed. So this menu option is useful in such situations.
Change-Id: I13e7e57516766fea787855b914d2884343cc33a5
Signed-off-by: Przemyslaw Marczak
---
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index cb25b28980..3a2ade099d 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -130,6 +130,7 @@ int check_keys(void)
static char *
mode_name[BOOT_MODE_EXIT + 1][2] = {
{"DEVICE", ""},
+ {"BATTERY", "battery"},
{"THOR", "thor"},
{"UMS", "ums"},
{"DFU", "dfu"},
@@ -141,6 +142,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = {
static char *
mode_info[BOOT_MODE_EXIT + 1] = {
"info",
+ "charge level",
"downloader",
"mass storage",
"firmware update",
@@ -152,6 +154,7 @@ mode_info[BOOT_MODE_EXIT + 1] = {
static char *
mode_cmd[BOOT_MODE_EXIT + 1] = {
"",
+ "battery state",
"thor 0 mmc 0",
"ums 0 mmc 0",
"dfu 0 mmc 0",
diff --git a/include/samsung/misc.h b/include/samsung/misc.h
index bc7ffba4dd..09250d96ba 100644
--- a/include/samsung/misc.h
+++ b/include/samsung/misc.h
@@ -21,6 +21,7 @@ void check_boot_mode(void);
#ifdef CONFIG_LCD_MENU
enum {
BOOT_MODE_INFO,
+ BOOT_MODE_BATT,
BOOT_MODE_THOR,
BOOT_MODE_UMS,
BOOT_MODE_DFU,