Add C-States and the respective residencies supported by the QCOM 8974
chipset. Current support is for WFI (clock gating) and Standlone-PC
(power down of the core).

Signed-off-by: Lina Iyer <lina.i...@linaro.org>
---
 arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi 
b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi
index 8fe00f1..4e3c206 100644
--- a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi
@@ -122,4 +122,25 @@
                qcom,cpu-alias-addr = <0x10000>;
                qcom,sleep-status-mask= <0x80000>;
        };
+
+       qcom,cpuidle {
+               compatible = "qcom,cpuidle";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               qcom,cpu-level@0 {
+                       reg = <0x0>;
+                       qcom,state-name = "C1";
+                       qcom,spm-cpu-mode = "wfi";
+                       qcom,latency-us = <1>;
+                       qcom,residency-us = <1>;
+               };
+
+               qcom,cpu-level@2 {
+                       reg = <0x1>;
+                       qcom,state-name = "C2";
+                       qcom,spm-cpu-mode = "standalone_pc";
+                       qcom,latency-us = <300>;
+                       qcom,residency-us = <2000>;
+               };
+       };
 };
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to