Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b462d12a authored by Jack Pham's avatar Jack Pham Committed by Stephen Boyd
Browse files

usb: dwc3-msm: Use ADC for ID pin detection



Configure ADC to periodically poll for the ID pin voltage. Register
for high and low voltage threshold notification in order to allow
for detecting when a micro-A cable is inserted or removed. This
notification will then be used to enter/exit OTG host mode.

Add module parameters to override the threshold levels as well as
the polling rate. These take effect when disable and enable is issued
to the "adc_enable" file in msm_dwc3's device node in sysfs.

Change-Id: Ibacb8f0f02bc94de8a3084e0b6673e3a4ca93f1d
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 836026a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment