Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d9ba935 authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-qg: Update CURRENT_NOW for parallel charging



The last_fifo_i alternately samples the current
from internal BAT_FET and parallel charger. Instead
use the FIFO_I average while reporting CURRENT_NOW
when parallel charging is enabled.

While at it, use the RTC time as the FIFO timestamp for
better co-relation during debug.

Change-Id: Iaaf445809b1b0096cc74b5d62c2510640f0482ad
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 220df69e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment