]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: wilco_ec: Add Dell's USB PowerShare Policy control
authorDaniel Campello <campello@chromium.org>
Tue, 8 Oct 2019 22:18:30 +0000 (16:18 -0600)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 11 Oct 2019 10:12:04 +0000 (12:12 +0200)
commit9365299d5a229ec528a2680f5373319200f853e6
treef83bf6742ad858ffc897f059e4d006fffac0ad10
parent13db5b2955f647f3b4df7c0cc0d017f3b762c47b
platform/chrome: wilco_ec: Add Dell's USB PowerShare Policy control

USB PowerShare is a policy which affects charging via the special
USB PowerShare port (marked with a small lightning bolt or battery icon)
when in low power states:
- In S0, the port will always provide power.
- In S0ix, if usb_charge is enabled, then power will be supplied to
  the port when on AC or if battery is > 50%. Else no power is supplied.
- In S5, if usb_charge is enabled, then power will be supplied to
  the port when on AC. Else no power is supplied.

Signed-off-by: Daniel Campello <campello@chromium.org>
Signed-off-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Documentation/ABI/testing/sysfs-platform-wilco-ec
drivers/platform/chrome/wilco_ec/sysfs.c