+10
−0
+1
−0
drivers/misc/type-c-ti.c
0 → 100644
+407
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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>