power: qpnp-charger: add use-default-batt-values flag

Some platforms are missing the correct battery temperature
reference voltage line which causes the temperature to be
incorrectly reported as very hot.

Also, for some platforms that only emulate VBAT but do not
have a Coulomb counter the reported state of charge may be
zero.

Both scenarios described above can cause unexpected shutdowns.

Fix this by allowing to override the reported battery temperature,
state of charge and disable charging for platforms that exhibit
this behaviour.

CRs-Fixed: 431485
Change-Id: Ib17dc82b130dc4d36f6bd10847dcc9d23974005e
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2 files changed