static void lcm_set_pwm_for_mix(int enable) { LCM_PARAMS params; lcm_get_params(¶ms); if (params.dsi.pwm_fps == 0) { LCM_PRINT("Please set PWM fps \n"); return; } if (enable) { #if defined(TARGET_MT6582_Y50) /* */ //lcm_set_fps(params.dsi.pwm_fps); #else lcm_set_fps(params.dsi.pwm_fps); #endif /* */ set_enable_te_framesync(); } else { mt_pwm_disable(pwm_setting.pwm_no, pwm_setting.pmic_pad); } LCM_PRINT("[LCD] lcm_set_pwm (%d)\n", enable); return; }
void lcm_set_pwm_for_mix(int enable) { LCM_PARAMS params; lcm_get_params(¶ms); if (params.dsi.pwm_fps == 0) { LCM_PRINT("Please set PWM fps\n"); return; } if (enable) { lcm_set_fps(params.dsi.pwm_fps); set_enable_te_framesync(); } else { mt_pwm_disable(pwm_setting.pwm_no, pwm_setting.pmic_pad); } LCM_PRINT("[LCD] lcm_set_pwm (%d)\n", enable); return; }