]> asedeno.scripts.mit.edu Git - linux.git/commit
extcon: intel-cht-wc: Make charger detection co-existed with OTG host mode
authorYauhen Kharuzhy <jekhor@gmail.com>
Sun, 3 Mar 2019 20:16:12 +0000 (23:16 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 5 Apr 2019 01:21:41 +0000 (10:21 +0900)
commit3137301b6d970219706d887eb6bdcabbf54f1f3b
tree771dcc93b295d1c7b6d1d2262711e1aa9fee7659
parent86baf800de84eb89615c138d368b14bff5ee7d8a
extcon: intel-cht-wc: Make charger detection co-existed with OTG host mode

Whiskey Cove Cherry Trail PMIC requires disabling OTG host mode before
of charger detection procedure. Do this by manipulationg of CHGRCTRL1
register.

Source: APCI DSDT code of Lenovo Yoga Book YB1-X91L and open-sourced
Intel's drivers.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-cht-wc.c