|
发表于 2020-11-5 20:37:27
5965 浏览 0 回复
MT6873/MT6753/MT6885 如何设定battery的固定温度?
[DESCRIPTION]
项目前期,可能battery没有ready,会报battery thermal关机,导致手机开不起来。
[sys.powerctl]=[shutdown,thermal,battery]
[SOLUTION]
参考如下临时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;
- <font color="Red">+ gm.fixed_bat_tmp = 25;</font>
- if (is_battery_init_done() == false) {
- gm.tbat_precise = 250;
- return 25;
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|