power: supply: axp20x_battery: add support for AXP813
authorQuentin Schulz <quentin.schulz@bootlin.com>
Wed, 28 Feb 2018 10:36:00 +0000 (11:36 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Fri, 9 Mar 2018 15:52:33 +0000 (16:52 +0100)
commit6ff653e3e8b9cd53cf490e8bea888e8af3e39ea7
tree91d0895d884d94c26ccfc50bb615c867f47f50ac
parent99cdb0a9f5ecae5c8accc0ee65326b6e9e793725
power: supply: axp20x_battery: add support for AXP813

The X-Powers AXP813 PMIC has got some slight differences from
AXP20X/AXP22X PMICs:
 - the maximum voltage supplied by the PMIC is 4.35 instead of 4.36/4.24
 for AXP20X/AXP22X,
 - the constant charge current formula is different,

It also has a bit to tell whether the battery percentage returned by the
PMIC is valid.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp20x_battery.c