|
发表于 2020-9-29 14:08:27
6088 浏览 0 回复
MT6885/MT6873/MT6853 设置电池默认温度值
项目前期,可能battery没有ready,会报battery thermal关机,导致手机开不起来。
[sys.powerctl]=[shutdown,thermal,battery]
参考如下临时patch,将battery温度固定在25度。
- diff --git a/drivers/power/supply/mediatek/battery/mtk_battery.c b/drivers/power/supply/mediatek/battery/mtk_battery.c
- index da936706e868..2168681acfb4 100644
- --- a/drivers/power/supply/mediatek/battery/mtk_battery.c
- +++ b/drivers/power/supply/mediatek/battery/mtk_battery.c
- @@ -1472,6 +1472,7 @@ int force_get_tbat_internal(bool update)
- static struct timespec pre_time;
- struct timespec ctime, dtime;
- + gm.fixed_bat_tmp = 25;
- if (is_battery_init_done() == false) {
- gm.tbat_precise = 250;
- return 25;
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|