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/20150115.132736~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=336297a638684a6006ed651e585a9c3583fc334c;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 21fd15cd41..d7352b5270 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -167,6 +167,7 @@ int check_keys(void) static char * mode_name[BOOT_MODE_EXIT + 1][2] = { {"DEVICE", ""}, + {"BATTERY", "battery"}, {"THOR", "thor"}, {"UMS", "ums"}, {"DFU", "dfu"}, @@ -178,6 +179,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = { static char * mode_info[BOOT_MODE_EXIT + 1] = { "info", + "charge level", "downloader", "mass storage", "firmware update", @@ -189,6 +191,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 cfa9688e59..48d149078a 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,