]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: wilco_ec: Add long life charging mode
authorCrag Wang <crag0715@gmail.com>
Thu, 30 Jul 2020 03:26:09 +0000 (11:26 +0800)
committerSebastian Reichel <sre@kernel.org>
Fri, 31 Jul 2020 12:33:56 +0000 (14:33 +0200)
commit34218b2be99caa73c5bb45db6a3ddec374d20396
tree52a1a6ae1c4cc2443a046ecdeb1c2bac72017720
parentb1514104262e641f22acbc99f46838fa16c4e2cb
power: supply: wilco_ec: Add long life charging mode

This is a long life mode set in the factory for extended warranty
battery, the power charging rate is customized so that battery at
work last longer.

Presently switching to a different battery charging mode is through
EC PID 0x0710 to configure the battery firmware, this operation will
be blocked by EC with failure code 0x01 when PLL mode is already
in use.

Signed-off-by: Crag Wang <crag.wang@dell.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/ABI/testing/sysfs-class-power-wilco
drivers/power/supply/power_supply_sysfs.c
drivers/power/supply/wilco-charger.c
include/linux/power_supply.h