Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56b923ae authored by Shuo Yan's avatar Shuo Yan Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdp3: underflow color adjust support on 8x10



This adds the underflow color adjustment support on
8x10. Customer can order underflow color by modifying
the parameter in panel device tree.

Change-Id: I5a0ae73bceff26b810de6809beb540681c30247f
Signed-off-by: default avatarShuo Yan <shuoy@codeaurora.org>
parent 77ea4f2d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -486,6 +486,7 @@ static int mdp3_ctrl_intf_init(struct msm_fb_data_type *mfd,
		video->hsync_polarity = 1;
		video->vsync_polarity = 1;
		video->de_polarity = 1;
		video->underflow_color = p->lcdc.underflow_clr;
	} else if (cfg.type == MDP3_DMA_OUTPUT_SEL_DSI_CMD) {
		cfg.dsi_cmd.primary_dsi_cmd_id = 0;
		cfg.dsi_cmd.secondary_dsi_cmd_id = 1;
+3 −1
Original line number Diff line number Diff line
@@ -1060,7 +1060,9 @@ int dsi_video_config(struct mdp3_intf *intf, struct mdp3_intf_cfg *cfg)
		temp |= BIT(2);
	MDP3_REG_WRITE(MDP3_REG_DSI_VIDEO_CTL_POLARITY, temp);

	MDP3_REG_WRITE(MDP3_REG_DSI_VIDEO_UNDERFLOW_CTL, 0x800000ff);
	v->underflow_color |= 0x80000000;
	MDP3_REG_WRITE(MDP3_REG_DSI_VIDEO_UNDERFLOW_CTL, v->underflow_color);

	return 0;
}

+1 −0
Original line number Diff line number Diff line
@@ -319,6 +319,7 @@ struct mdp3_video_intf_cfg {
	int hsync_polarity;
	int vsync_polarity;
	int de_polarity;
	int underflow_color;
};

struct mdp3_dsi_cmd_intf_cfg {