mt6797上,在Acc Mode下,如何配置使用ACCDET2引脚做中断源
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
MT6797上,在Acc Mode下,如何配置使用PMIC ACCDET2引脚做检测耳机中断源
[SOLUTION]
1、配置下列宏
CONFIG_mtk_ACCDET=y
CONFIG_ACCDET_EINT_IRQ =y //打开
2、请在kernel-3.18/arch/ARM64/boot/dts/project.dts中
将
&accdet {
accdet-mic-vol = <7>;
heADSet-mode-setting = <0x500 0x500 1 0x1F0 0x800 0x800 0X20>;
accdet-plugout-debounce = <1>;
/*1:ACC mode, 2:low cost without in bias, 6:low cost with in bias*/
accdet-mic-mode = <1>;
MT6797上,在Acc Mode下,如何配置使用PMIC ACCDET2引脚做检测耳机中断源
[SOLUTION]
1、配置下列宏
CONFIG_mtk_ACCDET=y
CONFIG_ACCDET_EINT_IRQ =y //打开
2、请在kernel-3.18/arch/ARM64/boot/dts/project.dts中
将
&accdet {
accdet-mic-vol = <7>;
heADSet-mode-setting = <0x500 0x500 1 0x1F0 0x800 0x800 0X20>;
accdet-plugout-debounce = <1>;
/*1:ACC mode, 2:low cost without in bias, 6:low cost with in bias*/
accdet-mic-mode = <1>;