diff options
| author | Gopikrishnaiah Anandan <agopik@codeaurora.org> | 2016-01-26 14:03:21 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 12:38:02 -0700 |
| commit | 91fea363372c553a30ad2cf65fce82f0593e3a17 (patch) | |
| tree | a90c92f81301059593b6814292171052ed36837c | |
| parent | 04310fbd9fe395264b72610ecc437b63d88a1b2e (diff) | |
msm: mdp: update pgc
PGC block of mdss supports 8/10 bit rounding options.
Default setting is 10 bit, userspace module can enable 8 bit rounding by
updating the flag.
Change-Id: Ide66c3854e333a0a1ce48b15d82760f37a05cc10
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp_v1_7.c | 2 | ||||
| -rw-r--r-- | include/uapi/linux/msm_mdp.h | 1 |
2 files changed, 3 insertions, 0 deletions
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; |
