mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm_fb: display: Enable scaling bit while setting x-flip bit
To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
This commit is contained in:
parent
0facfd9f66
commit
cd83ee23ff
1 changed files with 7 additions and 1 deletions
|
@ -697,8 +697,14 @@ void mdp4_overlay_rgb_setup(struct mdp4_overlay_pipe *pipe)
|
|||
op_mode &= ~(MDP4_OP_FLIP_LR + MDP4_OP_SCALEX_EN);
|
||||
op_mode &= ~(MDP4_OP_FLIP_UD + MDP4_OP_SCALEY_EN);
|
||||
outpdw(rgb_base + 0x0058, op_mode);/* MDP_RGB_OP_MODE */
|
||||
} else
|
||||
} else {
|
||||
if (pipe->op_mode & MDP4_OP_FLIP_LR && mdp_rev >= MDP_REV_42) {
|
||||
/* Enable x-scaling bit to enable LR flip */
|
||||
/* for MDP > 4.2 targets */
|
||||
pipe->op_mode |= 0x01;
|
||||
}
|
||||
outpdw(rgb_base + 0x0058, pipe->op_mode);/* MDP_RGB_OP_MODE */
|
||||
}
|
||||
outpdw(rgb_base + 0x005c, pipe->phasex_step);
|
||||
outpdw(rgb_base + 0x0060, pipe->phasey_step);
|
||||
|
||||
|
|
Loading…
Reference in a new issue