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

Commit 445b3612 authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: dispcc-kona: enable clock gating for MDP



Enable clock gating for display port MDP clocks
to improve power consumption.

Change-Id: I0e23b46000a2b9e0821e74af948e7a31aba0d3d6
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent 326bd135
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@

static DEFINE_VDD_REGULATORS(vdd_mm, VDD_NUM, 1, vdd_corner);

#define DISP_CC_MISC_CMD	0x8000

enum {
	P_BI_TCXO,
	P_CHIP_SLEEP_CLK,
@@ -1607,6 +1609,9 @@ static int disp_cc_kona_probe(struct platform_device *pdev)
	clk_lucid_pll_configure(&disp_cc_pll0, regmap, &disp_cc_pll0_config);
	clk_lucid_pll_configure(&disp_cc_pll1, regmap, &disp_cc_pll1_config);

	/* Enable clock gating for MDP clocks */
	regmap_update_bits(regmap, DISP_CC_MISC_CMD, 0x10, 0x10);

	ret = qcom_cc_really_probe(pdev, &disp_cc_kona_desc, regmap);
	if (ret) {
		dev_err(&pdev->dev, "Failed to register Display CC clocks\n");