regulator: qpnp-labibb: Do not program LAB_CURRENT_SENSE for PM660A
Programming the default (1.5x) LAB_CURRENT_SENSE configuration is not required for PM660A. Configure it only if explicitly specified in the DT config. CRs-Fixed: 1114628 Change-Id: Ib09e6430e99a7f39a9d2f837494a977daff354ba Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
This commit is contained in:
parent
9335a12bb0
commit
08db9f492d
1 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -2643,7 +2643,8 @@ static int register_qpnp_lab_regulator(struct qpnp_labibb *labibb,
|
|||
return rc;
|
||||
}
|
||||
|
||||
if (labibb->mode == QPNP_LABIBB_AMOLED_MODE) {
|
||||
if (labibb->mode == QPNP_LABIBB_AMOLED_MODE &&
|
||||
labibb->pmic_rev_id->pmic_subtype != PM660L_SUBTYPE) {
|
||||
/*
|
||||
* default to 1.5 times current gain if
|
||||
* user doesn't specify the current-sense
|
||||
|
@ -2684,7 +2685,7 @@ static int register_qpnp_lab_regulator(struct qpnp_labibb *labibb,
|
|||
|
||||
val = (labibb->standalone) ? 0 : LAB_IBB_EN_RDY_EN;
|
||||
rc = qpnp_labibb_sec_write(labibb, labibb->lab_base,
|
||||
REG_LAB_IBB_EN_RDY, val);
|
||||
REG_LAB_IBB_EN_RDY, val);
|
||||
|
||||
if (rc < 0) {
|
||||
pr_err("qpnp_lab_sec_write register %x failed rc = %d\n",
|
||||
|
@ -3829,9 +3830,10 @@ static int qpnp_labibb_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
dev_set_drvdata(&pdev->dev, labibb);
|
||||
pr_info("LAB/IBB registered successfully, lab_vreg enable=%d ibb_vreg enable=%d\n",
|
||||
pr_info("LAB/IBB registered successfully, lab_vreg enable=%d ibb_vreg enable=%d swire_control=%d\n",
|
||||
labibb->lab_vreg.vreg_enabled,
|
||||
labibb->ibb_vreg.vreg_enabled);
|
||||
labibb->ibb_vreg.vreg_enabled,
|
||||
labibb->swire_control);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue