当前位置: 代码迷 >> 综合 >> Add OCFB feature in MT6595/MT6735/MT6752/MT6795
  详细解决方案

Add OCFB feature in MT6595/MT6735/MT6752/MT6795

热度:47   发布时间:2024-01-12 20:34:12.0

Add OCFB feature in MT6595/MT6735/MT6752/MT6795

[DESCRIPTION]

有客户要求開啟VSIM OCFB的功能,預防vsim電流過大,造成不預期的影響。

[SOLUTION]

In mcu/custom/driver/drv/misc_drv/project/custom_sim_driver.c, add the
following code
?roject = _Default_BB/MTxxxx or customer’s specific project folder
?In void sim_init_all_cb(void) function, add the following codes
DCL_HANDLE handle;
PMU_CTRL_LDO_BUCK_SET_OCFB_EN val;
val.enable = DCL_TRUE;
val.mod = VSIM1;
handle = DclPMU_Open(DCL_PMU, FLAGS_NONE);
DclPMU_Control(handle, LDO_BUCK_SET_OCFB_EN, (DCL_CTRL_DATA_T*) &val);
#if defined(__GEMINI__)
val.mod = VSIM2;
DclPMU_Control(handle, LDO_BUCK_SET_OCFB_EN, (DCL_CTRL_DATA_T*) &val);
#endif
DclPMU_Close(handle);