diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.c b/drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.c index fe88fe676173..30ae05f809e5 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.c @@ -1995,6 +1995,8 @@ set_ops: writel_relaxed(0, base_addr + PGC_OPMODE_OFF); } else if (pgc_data->flags & MDP_PP_OPS_ENABLE) { val = PGC_ENABLE; + val |= (pgc_data->flags & MDP_PP_PGC_ROUNDING_ENABLE) + ? BIT(1) : 0; writel_relaxed(val, base_addr + PGC_OPMODE_OFF); *sts |= PP_STS_ENABLE; } diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index b12e48424412..537aa40364e4 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -916,6 +916,7 @@ struct mdp_ar_gc_lut_data { uint32_t offset; }; +#define MDP_PP_PGC_ROUNDING_ENABLE 0x10 struct mdp_pgc_lut_data { uint32_t version; uint32_t block;