MTK MT6739平台的thermal高温充电机制调整

MTK MT6739的thermal机制在充电时防止主板过热,当温度达到45℃时,会降低充电电流。通过分析log,发现是开启相机导致触发该机制。代码中chrlmt_set_limit_handler函数处理电流限制,循环从3000mA降至0mA。研究发现,设备同时启用了bcct和abcct冷却机制,而mtktsAP使用abcct,因此禁用bcct,调整abcct的target temp以加速降电流,减少发热。
摘要由CSDN通过智能技术生成

MTK平台的thermal机制是一种高温保护主板机制。主要用于手机在充电过程中,温度太高对手机主板造成损坏。

thermal主要由thermal配置文件和thermal的驱动代码进行控制。

从一个充电温度高电流降到0的bug开始讲解:

首先从log中看到:

<6>[34586.470707]  (2)[16839:3ATHREAD]GC5025_camera_sensor[feature_control] feature_id = 3084
<4>[34586.553323]  (1)[22062:kworker/u8:3][Thermal/TC/bcct]chrlmt_set_limit c14b4178 -1 200 0
<4>[34586.553424]  (2)[7858:kworker/u9:0][Thermal/TC/bcct]chrlmt_set_limit_handler -1 200
<5>[34586.553435]  (2)[7858:kworker/u9:0]charger_manager_set_input_current_limit: dev:mtk-cooler-bcct idx:0 en:-1
<5>[34586.553446]  (2)[7858:kworker/u9:0]force:0 thermal:450000 setting:450000 type:4 usb_unlimited:0 usbif:0 usbsm:0
<5>[34586.553507]  (2)[7858:kworker/u9:0]charger_manager_set_charging_current_limit: dev:mtk-cooler-bcct idx:0 en:200000
<5>[34586.553515]  (2)[7858:kworker/u9:0]force:0 thermal:200000 setting:200000 type:4 usb_unlimited:0 usbif
  • 3
    点赞
  • 41
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值