arm64: dts: qcom: qcs404-evb: Mark CDSP clocks protected
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 10 May 2019 04:34:16 +0000 (21:34 -0700)
committerAndy Gross <agross@kernel.org>
Thu, 30 May 2019 02:38:11 +0000 (21:38 -0500)
With the Trustzone based CDSP remoteproc driver these clocks are
controlled elsewhere and as they are not enabled by anything in Linux
the clock framework will turn them off during lateinit.

This results in issues either to later start the CDSP, using the
Trustzone interface, or if the CDSP is already running it will crash.

Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/qcs404-evb.dtsi

index 9a69df10cf68f51f41759c270cab06f91dc304c5..0347ed1484a3509ce79e9e13e769f03c6b5b54e1 100644 (file)
        qcom,controlled-remotely;
 };
 
+&gcc {
+       protected-clocks = <GCC_BIMC_CDSP_CLK>,
+                          <GCC_CDSP_CFG_AHB_CLK>,
+                          <GCC_CDSP_BIMC_CLK_SRC>,
+                          <GCC_CDSP_TBU_CLK>;
+};
+
 &pms405_spmi_regulators {
        vdd_s3-supply = <&pms405_s3>;