k1:p1:delete the shutdown-charging releated code
the charging logic in uboot don't use the shutdown-charging bit, so we delete the code in kernle Change-Id: Ie6be0968f929f528c2752eef0843ef25a6dca2b8 Signed-off-by: Nell <xianbin.zhu@spacemit.com>
This commit is contained in:
@@ -39,8 +39,6 @@ static const struct restart_config_info config_info[] = {
|
||||
{"fastboot", 1},
|
||||
// enter uboot shell after restart
|
||||
{"uboot", 2},
|
||||
// bit3 for charging flag
|
||||
{"shutdown-charging", 4},
|
||||
};
|
||||
|
||||
static const struct of_device_id spacemit_pmic_of_match[] = {
|
||||
@@ -76,16 +74,6 @@ static int spacemit_restart_notify(struct notifier_block *this, unsigned long mo
|
||||
int i, ret;
|
||||
struct spacemit_pmic *pmic = (struct spacemit_pmic *)match_data->ptr;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(config_info); ++i) {
|
||||
if(!strncmp(config_info[i].cmd_para, "shutdown-charging",
|
||||
sizeof("shutdown-charging"))) {
|
||||
regmap_update_bits(pmic->regmap, match_data->non_reset.reg,
|
||||
match_data->non_reset.bit, config_info[i].value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (NULL != cmd) {
|
||||
for (i = 0; i < ARRAY_SIZE(config_info); i++) {
|
||||
if (0 == strcmp(cmd, config_info[i].cmd_para)) {
|
||||
|
||||
Reference in New Issue
Block a user