leds: wled: unlock the secure register before writing the AMOLED type
The AMOLED type register is PMIC locked and needs secure access before being written to. Unlock the register before writing it to. Change-Id: Iccaa9d7e087e7608c6c2c687334eb6a9289dd923 Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
This commit is contained in:
parent
0135eceedf
commit
224aef51d1
|
@ -821,6 +821,11 @@ static int qpnp_wled_set_disp(struct qpnp_wled *wled, u16 base_addr)
|
|||
|
||||
reg &= QPNP_WLED_DISP_SEL_MASK;
|
||||
reg |= (wled->disp_type_amoled << QPNP_WLED_DISP_SEL_SHIFT);
|
||||
|
||||
rc = qpnp_wled_sec_access(wled, base_addr);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
rc = qpnp_wled_write_reg(wled, ®,
|
||||
QPNP_WLED_DISP_SEL_REG(base_addr));
|
||||
if (rc)
|
||||
|
|
Loading…
Reference in New Issue