usb: type_c: Add type-c driver for TI chip
TI chip supports detection of type-c chargers using I2C interface.
Add driver for TI type-c chip to detect and notify type-c chargers
to USB driver using power supply framework.
Also provide an option to disable the TI chip during suspend if state
is not-attached using DT or module param.
Command to enable this at runtime:
echo 1 > /sys/module/type_c_ti/parameters/disable_on_suspend
Only side-effect of enabling suspend during LPM is that ID High->Low
transition (or host cable connection) won't be detected when device
is in suspend state. Cable detection will happen when system wakes-up.
Change-Id: I69010ee391543831aa54fd869abbbe06cfb6b594
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment