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

Commit 880868b7 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

regulator: qpnp-labibb-regulator: change the way LAB module is configured



Currently, IBB_EN_RDY bit of LAB_IBB_EN_RDY register is being
used to determine whether LAB module needs to be configured
from HLOS or just to have the settings done by the bootloader
earlier. However, that bit specifies whether or not the LAB
module to be enabled from IBB via MODULE_EN bit in register
ENABLE_CTL of IBB or SWIRE. Hence modify the driver to check
IBB_ENABLE_CTL to see if it has been already enabled or not
before doing the configuration in HLOS based on the device tree.

While at it, fix a minor issue in qpnp_ibb_dt_init() where the
wrong macro was being used, even though the bit position being
configured is same.

Change-Id: I0c691fab2e624eb981fa836f910e0ee69503d74f
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent be08f39f
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