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

Commit e0baa754 authored by Junjie Wu's avatar Junjie Wu
Browse files

ARM: dts: msm: Make m4m-hwmon available only on MSM8996v3



Hardware support for M4M HW monitor is only added in MSM8996v3. Move
device from msm8996.dtsi to msm8996-v3.dtsi. In addition, configure
the counter to track read and write events separately instead of
total counts.

Change-Id: I13e89de9c9e75b4e0643317593aea787529ef4a6
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent bcea8d72
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -255,6 +255,16 @@
		clock-names = "core_clk";
		qcom,use-dma-zone;
	};

	qcom,m4m-hwmon@6530000 {
		compatible = "qcom,m4m-hwmon";
		reg = <0x6530000 0x160>;
		interrupts = <0 19 4>;
		qcom,counter-event-sel = <4 0x8000>,
					 <5 0x4000>;
		qcom,target-dev = <&m4m_cache>;
	};

};

&clock_cpu {
+0 −8
Original line number Diff line number Diff line
@@ -656,14 +656,6 @@
		qcom,target-dev = <&cpubw>;
	};

	qcom,m4m-hwmon {
		compatible = "qcom,m4m-hwmon";
		reg = <0x6530000 0x160>;
		interrupts = <0 19 4>;
		qcom,counter-event-sel = <4 0x100>;
		qcom,target-dev = <&m4m_cache>;
	};

	mincpubw: qcom,mincpubw {
		compatible = "qcom,devbw";
		governor = "powersave";