diff options
| author | Benet Clark <benetc@codeaurora.org> | 2014-03-10 13:25:51 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:27:42 -0700 |
| commit | e6be4e3a09bc7aa4ea71ca5b6a6973117629a13e (patch) | |
| tree | 03816c78e558108d04f449374da0c2d702c467b7 /drivers/video/fbdev | |
| parent | 2a0067cf0e6a62e5e703a47dc69437a485339a16 (diff) | |
msm: mdss: Add data mask when writing Gamut Mapping data
The gamut mapping data does only occupies 13 bits of the register.
Therefore, we should force the data that is written to be masked to
be the least significant 13 bits.
Change-Id: I37503ca3a46d9cb2cb1692763f301ae1d10f9d28
Signed-off-by: Benet Clark <benetc@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index 52b967611634..84a7c58f8079 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -544,20 +544,20 @@ static void pp_gamut_config(struct mdp_gamut_cfg_data *gamut_cfg, addr = base + MDSS_MDP_REG_DSPP_GAMUT_BASE; for (i = 0; i < MDP_GAMUT_TABLE_NUM; i++) { for (j = 0; j < gamut_cfg->tbl_size[i]; j++) - writel_relaxed((u32)gamut_cfg->r_tbl[i][j], - addr); + writel_relaxed((u32)gamut_cfg->r_tbl[i][j] + & 0x1FFF, addr); addr += 4; } for (i = 0; i < MDP_GAMUT_TABLE_NUM; i++) { for (j = 0; j < gamut_cfg->tbl_size[i]; j++) - writel_relaxed((u32)gamut_cfg->g_tbl[i][j], - addr); + writel_relaxed((u32)gamut_cfg->g_tbl[i][j] + & 0x1FFF, addr); addr += 4; } for (i = 0; i < MDP_GAMUT_TABLE_NUM; i++) { for (j = 0; j < gamut_cfg->tbl_size[i]; j++) - writel_relaxed((u32)gamut_cfg->b_tbl[i][j], - addr); + writel_relaxed((u32)gamut_cfg->b_tbl[i][j] + & 0x1FFF, addr); addr += 4; } if (gamut_cfg->gamut_first) |
