init: Support power off charging all bootloaders
Change-Id: I76ecfccb6ac52c422e5dba476bec6128b1292a17
This commit is contained in:
parent
b617f5225d
commit
d9b5fde487
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue