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

Skip to content
Commit 9776af61 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: fix various register addressing bugs



Fix the following register addressing bugs in the qpnp-smbcharger driver
that impede the functionality of the charger:

	1. The peripheral mask in the sec_access masked write function
	   is incorrect. It should be 0xFF not 0x3. This causes the
	   charger driver to fail to write to all secure access registers.
	2. The vfloat and tcc settings are using the wrong peripheral
	   bases. Change these to use the charger base.
	3. The charger enable command register is using the wrong
	   polarity. The setting should use active low, since the
	   charger_en command register is default 0.

Change-Id: I155927ea567549ffe881a6a045ce6b239f927f31
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent ed47a323
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