power: supply: cpcap-battery: Add battery type auto detection for mapphone devices

This allows cpcap-battery to detect whitch battery is inserted, HW4X or
BW8X for xt875 and EB41 for xt894 by examining the battery nvmem. If no
known battery is detected sane defaults are used.

Signed-off-by: Carl Philipp Klemm <philipp@uvos.xyz>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Carl Philipp Klemm 2021-12-29 01:08:53 +01:00 • committed by Sebastian Reichel
commit fd46821e85