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

Commit 4cc7bc03 authored by Camus Wong's avatar Camus Wong Committed by Gerrit - the friendly Code Review server
Browse files

msm: ekms: Support more Color Format in eDRM



Add more color format into eDRM plane.  Add YUV420, NV12, YUYV,
RGB565, RGB888 color to eDRM.

Change-Id: I73aa22e811ca061ea1a59194e4f76ae9fff47f46
Signed-off-by: default avatarCamus Wong <camusw@codeaurora.org>
parent 6ae3b230
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -418,7 +418,8 @@ static int _edrm_kms_parse_dt(struct msm_edrm_kms *edrm_kms)
			}

			plane = edrm_plane_init(edrm_kms->dev,
					edrm_kms->plane_id[disp_cnt]);
					edrm_kms->plane_id[disp_cnt],
					sspp_type);
			if (IS_ERR(plane)) {
				pr_err("edrm_plane_init failed\n");
				ret = PTR_ERR(plane);
@@ -431,6 +432,7 @@ static int _edrm_kms_parse_dt(struct msm_edrm_kms *edrm_kms)
			edrm_plane->lm_stage = lm_stage;
			edrm_plane->sspp_offset = sspp_offset;
			edrm_plane->sspp_cfg_id = sspp_cfg_id;
			edrm_plane->sspp_type = sspp_type;
			plane->possible_crtcs = (1 << disp_cnt);
			priv->num_planes++;
			plane_cnt++;