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

Commit 6c446f3c authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

power: bcl_peripheral: Update the Ibat and Vbat clear register



Update the Ibat max and Vbat low clear register
address to correct values. These registers are
used by the BCL software to clear the running
vbat max and ibat min. Without this the Ibat max
and vbat min weren't updating between the interrupts
reading same value all the time.

Change-Id: I7db74fb3ecb86e3d6580f91814bcd0d62fd7ddc6
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 3052bc2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ static int bcl_clear_vbat_min(void)
{
	int ret  = 0;

	ret = bcl_write_register(BCL_VBAT_MIN, BIT(7));
	ret = bcl_write_register(BCL_VBAT_MIN_CLR, BIT(7));
	if (ret)
		pr_err("Error in clearing vbat min reg. err:%d", ret);

@@ -361,7 +361,7 @@ static int bcl_clear_ibat_max(void)
{
	int ret  = 0;

	ret = bcl_write_register(BCL_IBAT_MAX, BIT(7));
	ret = bcl_write_register(BCL_IBAT_MAX_CLR, BIT(7));
	if (ret)
		pr_err("Error in clearing ibat max reg. err:%d", ret);