init: Support power off charging all bootloaders

Change-Id: I76ecfccb6ac52c422e5dba476bec6128b1292a17
This commit is contained in:
Arne Coucheron 2014-06-23 00:21:54 +02:00 committed by Dan Pasanen
parent b617f5225d
commit d9b5fde487
1 changed files with 5 additions and 2 deletions

View File

@ -428,9 +428,12 @@ static int __init do_early_param(char *param, char *val)
/* We accept everything at this stage. */
#ifdef CONFIG_SAMSUNG_LPM_MODE
/* check power off charging */
if ((strncmp(param, "androidboot.mode", 16) == 0)) {
if (strncmp(val, "charger", 7) == 0)
if ((strncmp(param, "androidboot.mode", 16) == 0) ||
(strncmp(param, "androidboot.bootchg", 19) == 0)) {
if ((strncmp(val, "charger", 7) == 0) ||
(strncmp(val, "true", 4) == 0)) {
poweroff_charging = 1;
}
}
#endif
return 0;