rhode: solve the problem of slow power-off of front dvdd

Details:
according to datasheet,write 0x8f to 0x02 RDIS register ,each ldo
regulator output discharge register enable control.

Change-Id: I05e5c21fb428138993a9a29a105aa4e71819ff3b
Signed-off-by: qiaopf1 <qiaopf1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2188607
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
qiaopf1 2022-02-11 10:58:29 +08:00 • committed by PengFei Qiao
commit 673504b808

View file

@ -218,7 +218,13 @@ static int wl2866d_regulator_init(struct wl2866d *chip)
"Disable all LDO output failed!!!\n");
return ret;
}
/* Enable all ldo discharge by default */
ret = regmap_write(chip->regmap, WL2866D_DISCHARGE_RESISTORS, 0x8f);
if (ret < 0) {
dev_err(chip->dev,
"Enable LDO discharge failed!!!\n");
return ret;
}
for (id = 0; id < WL2866D_MAX_REGULATORS; id++) {
chip->rdesc[id] = &wl2866d_regls_desc[id];
rdesc = chip->rdesc[id];