How to use USB to do charger detection instead of PMIC?
點擊打開鏈接
Question:Many customers want to use USB based charger detection instead of PMIC, because of the problem of PMIC, or customer do not adopt QC PMIC component in hardware design, ?How to use USB to do charger detection instead of PMIC?
Answer:
On platforms like 8939,8916, USB side SW&HW have support for charger detection. If customer want to use USB PHY to do charger detection, need to call below in charger driver to activate USB.
? ? power_supply_set_charge_type(chip->usb_psy, POWER_SUPPLY_TYPE_UNKNOWN);
? ? power_supply_set_present(chip->usb_psy, TRUE);
? ??
If the charger type set to unknown, USB will start charger detection.?
Please note on new platforms like 9x40, we do not support USB charger detection.
總結(jié)
以上是生活随笔為你收集整理的How to use USB to do charger detection instead of PMIC?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MSM USB插入流程代码分析
- 下一篇: 基于android7.1+msm8937