Commit Graph

2 Commits

Author SHA1 Message Date
Anirudh Ghayal
07fbf79e4f power: qpnp-qg: Add time and sequence-no to FIFO data
Add the clock monotonic time and sequence-no information
to the FIFO data passed to userspace as additional
debugging info.

While at it, update the charge_counter value.

Change-Id: I7bb3591502f3cf19a96c2958c1d3adec9c16a87e
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2018-02-27 12:20:44 +05:30
Anirudh Ghayal
e6b2f4a17e power: qcom: Add the QPNP QGAUGE (QG) driver
The QG driver adds support for battery gauging and reporting
the battery specific parameters to userspace. The driver comprises
of the below files:

qpnp-qg.c: Core QG driver
qg-soc.c: SOC (state of charge) scaling operations
qg-util.c: Common functions
qg-battery-profile.c: Parsing battery profile from DT
qg-profile-lib.c: Operations on battery profiles
qg-sdam.c: SDAM interface for QG

This commit also adds the below UAPI files,

qg.h: QG data shared between kernel and userspace QG modules
qg-profile.c: Profile data exchange between kernel and userspace.

CRs-Fixed: 2190528
Change-Id: I97f9d051692ed659030136a622e62009da55b462
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2018-02-20 15:34:48 +05:30