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

Commit ccd2fdb1 authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: clock-cpu: Add a new boolean property for PM Qos



Support "qcom,enable-qos" property which is required when the cpu clocks
require to request a pm qos value while updating the PLL and root clock
generator during clock set rate.

CRs-Fixed: 973895
Change-Id: I3254f68a001ded267a3b0eb7934e1c8233463255
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 676c9bc2
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,9 @@ Optional Properties:
			If defined, the "safe_l" value column is required to be
			If defined, the "safe_l" value column is required to be
			defined along with speedX-bin-vY-cl as indicated in
			defined along with speedX-bin-vY-cl as indicated in
			below example.
			below example.
- qcom,enable-qos:      Boolean property to indicate the pm qos is required
			during set rate of the cluster clocks, which would not
			allow the cluster cores to go to low power mode.


Example:
Example:
	clock_cpu: qcom,cpu-clock-titanium@b116000 {
	clock_cpu: qcom,cpu-clock-titanium@b116000 {
+4 −2
Original line number Original line Diff line number Diff line
@@ -1737,8 +1737,10 @@ static int clock_cpu_probe(struct platform_device *pdev)
			cpumask_set_cpu(cpu, &a53_perf_clk.cpumask);
			cpumask_set_cpu(cpu, &a53_perf_clk.cpumask);
	}
	}


	if (of_property_read_bool(pdev->dev.of_node, "qcom,enable-qos")) {
		a53_pwr_clk.hw_low_power_ctrl = true;
		a53_pwr_clk.hw_low_power_ctrl = true;
		a53_perf_clk.hw_low_power_ctrl = true;
		a53_perf_clk.hw_low_power_ctrl = true;
	}


	debugfs_init(pdev);
	debugfs_init(pdev);