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>
This commit is contained in:
Gopikrishnaiah Anandan 2016-01-26 14:03:21 -08:00 committed by David Keitel
parent 04310fbd9f
commit 91fea36337
2 changed files with 3 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;