Skip to content
Commit 5161ec20 authored by Hermes Zhang's avatar Hermes Zhang Committed by Sebastian Reichel
Browse files

power: supply: bq256xx: Support to disable charger



To be able to control the charging process flexible, we need to able to
disable the charger. This commit will allow to disable the charger by
"echo 1 > /sys/class/power_supply/bq256xx-charger/charge_type"
(1 = POWER_SUPPLY_CHARGE_TYPE_NONE) and enable the charger by set it to
2/3 (POWER_SUPPLY_CHARGE_TYPE_TRICKLE/POWER_SUPPLY_CHARGE_TYPE_FAST)

Signed-off-by: default avatarHermes Zhang <chenhuiz@axis.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 83425c83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment