fix color/rotation for lcdc_lg_xga
This commit is contained in:
@@ -1884,8 +1884,8 @@ CONFIG_FB_MSM_LCDC_LG_XGA_PANEL=y
|
|||||||
# CONFIG_FB_MSM_TVOUT_PAL_N is not set
|
# CONFIG_FB_MSM_TVOUT_PAL_N is not set
|
||||||
CONFIG_FB_MSM_TVOUT_NONE=y
|
CONFIG_FB_MSM_TVOUT_NONE=y
|
||||||
# CONFIG_FB_MSM_DEFAULT_DEPTH_RGB565 is not set
|
# CONFIG_FB_MSM_DEFAULT_DEPTH_RGB565 is not set
|
||||||
CONFIG_FB_MSM_DEFAULT_DEPTH_ARGB8888=y
|
# CONFIG_FB_MSM_DEFAULT_DEPTH_ARGB8888 is not set
|
||||||
# CONFIG_FB_MSM_DEFAULT_DEPTH_RGBA8888 is not ste
|
CONFIG_FB_MSM_DEFAULT_DEPTH_RGBA8888=y
|
||||||
CONFIG_BACKLIGHT_LCD_SUPPORT=y
|
CONFIG_BACKLIGHT_LCD_SUPPORT=y
|
||||||
CONFIG_LCD_CLASS_DEVICE=m
|
CONFIG_LCD_CLASS_DEVICE=m
|
||||||
# CONFIG_LCD_L4F00242T03 is not set
|
# CONFIG_LCD_L4F00242T03 is not set
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ void mdp4_overlay_dmap_cfg(struct msm_fb_data_type *mfd, int lcdc)
|
|||||||
|
|
||||||
mdp_pipe_ctrl(MDP_CMD_BLOCK, MDP_BLOCK_POWER_ON, FALSE);
|
mdp_pipe_ctrl(MDP_CMD_BLOCK, MDP_BLOCK_POWER_ON, FALSE);
|
||||||
|
|
||||||
#ifndef CONFIG_FB_MSM_LCDC_CHIMEI_WXGA_PANEL
|
#if !defined(CONFIG_FB_MSM_LCDC_CHIMEI_WXGA_PANEL) && !defined(CONFIG_FB_MSM_LCDC_LG_XGA)
|
||||||
if (lcdc)
|
if (lcdc)
|
||||||
dma2_cfg_reg |= DMA_PACK_ALIGN_MSB;
|
dma2_cfg_reg |= DMA_PACK_ALIGN_MSB;
|
||||||
#endif
|
#endif
|
||||||
@@ -470,6 +470,11 @@ void mdp4_overlay_rgb_setup(struct mdp4_overlay_pipe *pipe)
|
|||||||
pipe->op_mode |= MDP4_OP_IGC_LUT_EN;
|
pipe->op_mode |= MDP4_OP_IGC_LUT_EN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_FB_MSM_LCDC_LG_XGA
|
||||||
|
pipe->op_mode |= MDP4_OP_FLIP_LR;
|
||||||
|
pipe->op_mode |= MDP4_OP_FLIP_UD;
|
||||||
|
#endif
|
||||||
|
|
||||||
mdp4_scale_setup(pipe);
|
mdp4_scale_setup(pipe);
|
||||||
|
|
||||||
mdp_pipe_ctrl(MDP_CMD_BLOCK, MDP_BLOCK_POWER_ON, FALSE);
|
mdp_pipe_ctrl(MDP_CMD_BLOCK, MDP_BLOCK_POWER_ON, FALSE);
|
||||||
@@ -1839,6 +1844,11 @@ static int mdp4_overlay_req2pipe(struct mdp_overlay *req, int mixer,
|
|||||||
|
|
||||||
pipe->op_mode = 0;
|
pipe->op_mode = 0;
|
||||||
|
|
||||||
|
#ifdef CONFIG_FB_MSM_LCDC_LG_XGA
|
||||||
|
pipe->op_mode |= MDP4_OP_FLIP_LR;
|
||||||
|
pipe->op_mode |= MDP4_OP_FLIP_UD;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (req->flags & MDP_FLIP_LR)
|
if (req->flags & MDP_FLIP_LR)
|
||||||
pipe->op_mode |= MDP4_OP_FLIP_LR;
|
pipe->op_mode |= MDP4_OP_FLIP_LR;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user