power: supply: sc27xx: Add suspend/resume interfaces
authorYuanjiang Yu <yuanjiang.yu@unisoc.com>
Wed, 14 Nov 2018 09:07:07 +0000 (17:07 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 6 Dec 2018 00:04:30 +0000 (01:04 +0100)
commite2fb615b69e0e612078363fd0ecc63738a54e1cd
tree57b77904f50ca13dfa2d8bd7bfadbd84b094baa9
parentedcb1c0a3f6377d565a90795376ad6d4cb631d66
power: supply: sc27xx: Add suspend/resume interfaces

Add fuel gauge platform suspend and resume interfaces. In suspend state,
we should enable the low voltage and coulomb counter threshold interrupts
to wake up system to calibrate the battery capacity in lower voltage stage.

Signed-off-by: Yuanjiang Yu <yuanjiang.yu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c