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)
commit46cbd0b05799e8234b719d18f3a4b27679c4c92e
tree52a1a6ae1c4cc2443a046ecdeb1c2bac72017720
parent707d678a5c7c5e80d1caac6c6b021171f5ecde58
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