mtk8735b 低电(电压小于3.4V)充不亮充电图标
2019-04-13 14:03发布
生成海报
mtk 低电(电压小于3.4V)充不亮充电图标
查看log知道亮低电充电图标是在lk层
MTK启动流程`
bootroom(加载pl 可USB下载) ------->pl(加载lk)----------->lk(加载内核)-------->kernel(驱动(GPL认证),内核态init进程启动)--------->Android系统(Android Framework层初始化,用户态init进程启动)
mt8163_8.1_9_5alpsvendormediatekproprietaryootableootloaderlkplatformmt8163 platform.c有下面的代码控制低电会亮低电图标
void platform_init(void)
{
....................
#ifdef MTK_KERNEL_POWER_OFF_CHARGING
if (kernel_charging_boot() == 1) {
#ifdef MTK_BATLOWV_NO_PANEL_ON_EARLY//由于此项目是充电dc充电的不满足下面的判断条件所以不会亮低电图标
CHARGER_TYPE CHR_Type_num = CHARGER_UNKNOWN;
CHR_Type_num = hw_charging_get_charger_type();
if ((g_boot_mode != LOW_POWER_OFF_CHARGING_BOOT) ||
((CHR_Type_num != STANDARD_HOST) && (CHR_Type_num != NONSTANDARD_CHARGER))) {
#endif
mt_disp_power(TRUE);
mt_disp_show_low_battery();//调用该函数可以亮低电图标
mt65xx_leds_brightness_set(6, 110);
#ifdef MTK_BATLOWV_NO_PANEL_ON_EARLY
}
#endif
} else if (g_boot_mode != KERNEL_POWER_OFF_CHARGING_BOOT && g_boot_mode != LOW_POWER_OFF_CHARGING_BOOT) {
if (g_boot_mode != ALARM_BOOT && (g_boot_mode != FASTBOOT)) {
mt_disp_show_boot_logo();
}
}
...................
}
//改法 mt8163_8.1_9_5alpsdevicemediateksample b8163p3_bspelinkPCBAH863
ProjectConfig.mk中该宏关闭
....................
MTK_BATLOWV_NO_PANEL_ON_EARLY = no
...................
mt8163_8.1_9_5alpsdevicemediateksample b8163p3_bspelinkPCBAH863
tb8163p3_bsp_lk.mk 控制lk层的该宏关闭
.................
#DEFINES += MTK_BATLOWV_NO_PANEL_ON_EARLY
.................
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮