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

Commit 43e51a87 authored by Santosh Mardi's avatar Santosh Mardi
Browse files

ARM: dts: mdm: add support to scale apps ahb clk along cpu



Scale APPS AHB clock along with the cpu freq with pre defined mapping
between cpu and apps ahb clock.

Change-Id: I87f7f2689fa1956a73f336fb42c0b6026566d4ea
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent b9fe4981
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -227,6 +227,18 @@
				< 1286400 >;
	};

	ahb_clk: qcom,ahb-clk-src {
		compatible = "devfreq-simple-dev";
		clock-names = "devfreq_clk";
		clocks = <&clock_gcc clk_apss_ahb_clk_src>;
		governor = "powersave";
		freq-tbl-khz =
			<  19200 >,
			<  50000 >,
			<  100000 >,
			<  133330 >;
	};

	devfreq-cpufreq {
		cpubw-cpufreq {
			target-dev = <&cpubw>;
@@ -235,6 +247,14 @@
				<  787200 3082 >,
				< 1286400 3952 >;
		};
		cpuahb-cpufreq {
			target-dev = <&ahb_clk>;
			cpu-to-dev-map =
				<  200000  19200 >,
				<  384000  50000 >,
				<  787200  100000 >,
				<  1286400 133330 >;
		};
	};

	cpubw: qcom,cpubw {