1,353
社区成员
发帖
与我相关
我的任务
分享
目前我们使用的是 iphone 6s 电池。电池配置文件已正确加载,并报告了正确的 SOC。但是,如果电池未充电,则电池会完全耗尽至 0V。
PM4125 数据表显示它支持涓流充电,但我们始终必须更换电池,因为系统甚至无法在电池完全耗尽的情况下启动.
我们要如何修改使这个PMIC可以正常的对我们的电池进行涓流充电?
现已确认这是debug_board的问题。默认的debug_board_id_range为2k到14k,BATT_id连接到10k的接地电阻器,因此被识别为debug_boat并跳过xbl电源阶段。
以下是对应修改的patch:
diff --git a/boot_images/QcomPkg/SocPkg/AgattiPkg/Settings/PMIC/pm_config_target.c b/boot_images/QcomPkg/SocPkg/AgattiPkg/Settings/PMIC/pm_config_target.c
index 445b48cb..a0204bfb 100755
--- a/boot_images/QcomPkg/SocPkg/AgattiPkg/Settings/PMIC/pm_config_target.c
+++ b/boot_images/QcomPkg/SocPkg/AgattiPkg/Settings/PMIC/pm_config_target.c
@@ -134,7 +134,7 @@ pm_chg_charger_config_type pm_charger_config =
{
.pmic_index_charger = 0, // PMIC_A, Cocos
.dead_battery_threshold = 3450, // Increase UEFI bootup threshold to 3.45V. This will allow UEFI to draw additional current from USBIN
- .debug_board_id_range = {.min_in_ohm = 2000, .max_in_ohm = 14000 }, // The battery ID range for debug board
+ .debug_board_id_range = {.min_in_ohm = 2000, .max_in_ohm = 5000 }, // The battery ID range for debug board
.afp = {.too_hot_afp_threshold = 75, .enable_afp_hot = TRUE,
.too_cold_afp_threshold = -20, .enable_afp_cold = TRUE}
};