MTK675电源管理笔记

2019-07-13 21:40发布

1、电源PMIC操作函数

 pmic上电下电:   pmic_config_interface(0x045A, 0x7, 0x7, 5);//SET VGP6 = 3.3V   pmic_config_interface(0x0434,1,0x1,15);   MDELAY(5);   pmic_config_interface(0x0456, 0x3, 0x7, 5);//SET VGP4 = 1.8V   pmic_config_interface(0x0430,1,0x1,15);

2、屏幕suspend时存在系统电源2v8拉高拉低现象

log及休眠时流程如下: 第一次:
[  124.802844] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  126.630887] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  127.097611] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  127.741338] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  133.044145] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
第二次:
[  306.982389] <4>-(4)[0:swapper/4][name:pmic_api_ldo&]en_value=1
[  308.065276] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  308.513708] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  310.766634] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  311.245783] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  313.386436] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  313.817706] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  316.217986] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
第三次:
[  354.004104] <4>-(4)[0:swapper/4][name:pmic_api_ldo&]en_value=1
[  355.432921] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  355.866159] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  358.264919] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  358.866401] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  360.859727] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  361.335046] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  362.900689] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0
[  363.315017] <0>-(0)[0:swapper/0][name:pmic_api_ldo&]en_value=1
[  365.512282] <0>-(0)[1190:system_server][name:pmic_api_ldo&]en_value=0

spm_go_to_dpidle调用->spm_dpidle_pre_process调用->spm_pmic_power_mode(PMIC_PWR_DEEPIDLE, 0, 0);调用->pmic_ldo_vldo28_sw_en(1);调用
休眠时反复调用几次造成上述问题。