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:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment