Skip to content

Commit acf7843

Browse files
lnxbuildGerrit Code Review
lnxbuild
authored and
Gerrit Code Review
committed
Merge "msm: cpr: Prop-up Quot to recover some pre-CS devices" into jb_rel_rb5_qrd
2 parents 0517294 + 27ad24f commit acf7843

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Diff for: arch/arm/mach-msm/devices-msm7x27a.c

+18-1
Original file line numberDiff line numberDiff line change
@@ -1868,8 +1868,25 @@ static void __init msm_cpr_init(void)
18681868
}
18691869
}
18701870

1871+
/* Temporary fix for Quot deficiency on some pre-CS parts which turbo_quot <= 50,some bad chip */
1872+
if (cpr_info->turbo_quot <= 50) {
1873+
if (cpr_info->pvs_fuse <= 0x6) {
1874+
msm_cpr_pdata.max_quot += (47 * 10);
1875+
if (msm_cpr_pdata.max_quot > 1470)
1876+
msm_cpr_pdata.max_quot = 1470;
1877+
} else if (cpr_info->pvs_fuse <= 0xF) {
1878+
msm_cpr_pdata.max_quot += (43 * 10);
1879+
if (msm_cpr_pdata.max_quot > 1430)
1880+
msm_cpr_pdata.max_quot = 1430;
1881+
} else {
1882+
msm_cpr_pdata.max_quot += (38 * 10);
1883+
if (msm_cpr_pdata.max_quot > 1380)
1884+
msm_cpr_pdata.max_quot = 1380;
1885+
}
1886+
}
1887+
18711888
pr_info("%s: cpr: ring_osc: 0x%x\n", __func__,
1872-
msm_cpr_mode_data[TURBO_MODE].ring_osc);
1889+
msm_cpr_mode_data[TURBO_MODE].ring_osc);
18731890
pr_info("%s: cpr: turbo_quot: 0x%x\n", __func__, cpr_info->turbo_quot);
18741891
pr_info("%s: cpr: pvs_fuse: 0x%x\n", __func__, cpr_info->pvs_fuse);
18751892
pr_info("%s: cpr: floor_fuse: 0x%x\n", __func__, cpr_info->floor_fuse);

0 commit comments

Comments
 (0)