summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Collins <collinsd@codeaurora.org>2016-04-27 17:31:44 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-05-03 15:47:41 -0700
commit3ed9b4708bb98bfc071ec8353ad30a3ec179cbb0 (patch)
treef4bf39eedd68e7b22693e9662d0788b9444d7448
parent20c533311adf3f53299c3ba2323bc172dccfca4f (diff)
regulator: cpr3-mmss-regulator: update reference voltages for msmcobalt
MSMCOBALT parts with CPR fusing revision 1 and above will have their open-loop voltage fuses blown assuming new lower reference voltages. These lower reference values allow for fusing parts with lower open-loop voltages than was possible before. Update the driver in order to use a different set of open-loop fuse reference voltages for MSMCOBALT CPR revision 0 vs revisions 1 to 7. Change-Id: I2d38454fce77a895f0aaf18e01f7d0c9f3c64692 CRs-Fixed: 1009268 Signed-off-by: David Collins <collinsd@codeaurora.org>
-rw-r--r--drivers/regulator/cpr3-mmss-regulator.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/regulator/cpr3-mmss-regulator.c b/drivers/regulator/cpr3-mmss-regulator.c
index d32db884989e..c80b6b703e26 100644
--- a/drivers/regulator/cpr3-mmss-regulator.c
+++ b/drivers/regulator/cpr3-mmss-regulator.c
@@ -191,6 +191,14 @@ static const int msm8996pro_mmss_fuse_ref_volt[MSM8996_MMSS_FUSE_CORNERS] = {
};
static const int msmcobalt_mmss_fuse_ref_volt[MSM8996_MMSS_FUSE_CORNERS] = {
+ 528000,
+ 656000,
+ 812000,
+ 932000,
+};
+
+static const int
+msmcobalt_rev0_mmss_fuse_ref_volt[MSM8996_MMSS_FUSE_CORNERS] = {
632000,
768000,
896000,
@@ -694,7 +702,10 @@ static int cpr3_msm8996_mmss_calculate_open_loop_voltages(
goto done;
}
- if (vreg->thread->ctrl->soc_revision == MSMCOBALT_SOC_ID)
+ if (vreg->thread->ctrl->soc_revision == MSMCOBALT_SOC_ID
+ && fuse->cpr_fusing_rev == 0)
+ ref_volt = msmcobalt_rev0_mmss_fuse_ref_volt;
+ else if (vreg->thread->ctrl->soc_revision == MSMCOBALT_SOC_ID)
ref_volt = msmcobalt_mmss_fuse_ref_volt;
else if (vreg->thread->ctrl->soc_revision == MSM8996PRO_SOC_ID)
ref_volt = msm8996pro_mmss_fuse_ref_volt;