]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: qcom: Specify dload address for msm8916 and msm8996
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 14 Aug 2017 22:46:19 +0000 (15:46 -0700)
committerAndy Gross <andy.gross@linaro.org>
Thu, 12 Oct 2017 04:57:02 +0000 (23:57 -0500)
On msm8916 and msm8996 boards a secure io-write is used to write the
magic for selecting "download mode", specify this address in the
DeviceTree.

Note that qcom_scm.download_mode=1 must be specified on the kernel
command line for the kernel to attempt selecting download mode.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/qcom/msm8996.dtsi

index dc3817593e144708a514a5605491801056e662ab..eaf1af7be52ac3b2e37cd72587acc67752801b34 100644 (file)
@@ -257,6 +257,8 @@ scm: scm {
                        clocks = <&gcc GCC_CRYPTO_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, <&gcc GCC_CRYPTO_AHB_CLK>;
                        clock-names = "core", "bus", "iface";
                        #reset-cells = <1>;
+
+                       qcom,dload-mode = <&tcsr 0x6100>;
                };
        };
 
index d158fd16c440c71fcb6adc55dff1660b0d6b98af..a01ad98032c580b1d167f7777453fd33369864e1 100644 (file)
@@ -261,6 +261,8 @@ psci {
        firmware {
                scm {
                        compatible = "qcom,scm-msm8996";
+
+                       qcom,dload-mode = <&tcsr 0x13000>;
                };
        };
 
@@ -358,6 +360,11 @@ tcsr_mutex_regs: syscon@740000 {
                        reg = <0x740000 0x20000>;
                };
 
+               tcsr: syscon@7a0000 {
+                       compatible = "qcom,tcsr-msm8996", "syscon";
+                       reg = <0x7a0000 0x18000>;
+               };
+
                intc: interrupt-controller@9bc0000 {
                        compatible = "arm,gic-v3";
                        #interrupt-cells = <3>;