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
|
* 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
|
* 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;
|
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
|
* default to 1.5 times current gain if
|
||||||
* user doesn't specify the current-sense
|
* user doesn't specify the current-sense
|
||||||
|
@ -3829,9 +3830,10 @@ static int qpnp_labibb_regulator_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dev_set_drvdata(&pdev->dev, labibb);
|
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->lab_vreg.vreg_enabled,
|
||||||
labibb->ibb_vreg.vreg_enabled);
|
labibb->ibb_vreg.vreg_enabled,
|
||||||
|
labibb->swire_control);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue