summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-01-05 02:08:45 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-05 02:08:45 -0800
commitee57bbcc67984880a954e303d3a211505a86708c (patch)
tree39bf1a80d644d5b386157cce7ea0ddb6657c9284 /drivers/video
parent0aac3e19aff0f6e89ab6277b3e358477563f6dea (diff)
parent358551764eef8610dbbb27f8b84709527354ef8c (diff)
Merge "msm: mdss: Update WB OT settings for SDM660"
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c
index d9cfd2360ab3..f9eaa95cced4 100644
--- a/drivers/video/fbdev/msm/mdss_mdp.c
+++ b/drivers/video/fbdev/msm/mdss_mdp.c
@@ -4800,6 +4800,14 @@ static void apply_dynamic_ot_limit(u32 *ot_lim,
else
*ot_lim = 6;
break;
+ case MDSS_MDP_HW_REV_320:
+ if ((res <= RES_1080p) && (params->frame_rate <= 30))
+ *ot_lim = 2;
+ else if ((res <= RES_1080p) && (params->frame_rate <= 60))
+ *ot_lim = 6;
+ else if ((res <= RES_UHD) && (params->frame_rate <= 30))
+ *ot_lim = 16;
+ break;
default:
if (res <= RES_1080p) {
*ot_lim = 2;