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

Commit 2f84f8a4 authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: add crtc clock & bandwidth capabilities



Add clock and bandwidth properties to capabilities blob for crtc.
These properties are used by user mode client to fine tune use
case power/performance.

CRs-Fixed: 2005348
Change-Id: I9d2a4a299198bc3ba72d1a76f4cc80ee19df8ae0
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent 9aa061c7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1535,6 +1535,15 @@ static void sde_crtc_install_properties(struct drm_crtc *crtc,
	}

	sde_kms_info_add_keyint(info, "has_src_split", catalog->has_src_split);
	if (catalog->perf.max_bw_low)
		sde_kms_info_add_keyint(info, "max_bandwidth_low",
				catalog->perf.max_bw_low);
	if (catalog->perf.max_bw_high)
		sde_kms_info_add_keyint(info, "max_bandwidth_high",
				catalog->perf.max_bw_high);
	if (sde_kms->perf.max_core_clk_rate)
		sde_kms_info_add_keyint(info, "max_mdp_clk",
				sde_kms->perf.max_core_clk_rate);
	msm_property_set_blob(&sde_crtc->property_info, &sde_crtc->blob_info,
			info->data, info->len, CRTC_PROP_INFO);