summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-intel.h
diff options
context:
space:
mode:
authorYauhen Kharuzhy <jekhor@gmail.com>2019-03-03 23:16:13 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2019-04-05 04:21:41 +0300
commita72a1be0de71b3bdab3d8b2e708267f32ea33ee2 (patch)
treea3db62d00170ffa816290bd9704322ccfea79086 /drivers/extcon/extcon-intel.h
parent3137301b6d970219706d887eb6bdcabbf54f1f3b (diff)
downloadlinux-a72a1be0de71b3bdab3d8b2e708267f32ea33ee2.tar.xz
extcon: intel-cht-wc: Enable external charger
In some configuration external charger "#charge enable" signal is connected to PMIC. Enable it at device probing to allow charging. Save CHGRCTRL0 and CHGDISCTR registers at driver probing and restore them at driver unbind to re-enable hardware charging control if it was enabled before. Tested at Lenovo Yoga Book (YB1-X91L). 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>
Diffstat (limited to 'drivers/extcon/extcon-intel.h')
0 files changed, 0 insertions, 0 deletions