arm/dt : Allocate 5MB for secure apps from first 256MB of memory
Update the qseecom driver in the device tree with the address
of fixed memory for loading secure application. Update the
msm-mem-hole node to reflect the same.
Change-Id: If13a853531b24c043b1d570a0cb9f34518f8976c
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
diff --git a/Documentation/devicetree/bindings/qseecom/qseecom.txt b/Documentation/devicetree/bindings/qseecom/qseecom.txt
index 5e7c42a..43033a8 100644
--- a/Documentation/devicetree/bindings/qseecom/qseecom.txt
+++ b/Documentation/devicetree/bindings/qseecom/qseecom.txt
@@ -2,6 +2,7 @@
Required properties:
- compatible : Should be "qcom,qseecom"
+- reg : should contain memory region address reserved for loading secure apps.
- qcom, msm_bus,name: Should be "qseecom-noc"
- qcom, msm_bus,num_cases: Depends on the use cases for bus scaling
- qcom, msm_bus,num_paths: The paths for source and destination ports
@@ -10,6 +11,8 @@
Example:
qcom,qseecom@fe806000 {
compatible = "qcom,qseecom";
+ reg = <0x7f00000 0x500000>;
+ reg-names = "secapp-region";
qcom,msm_bus,name = "qseecom-noc";
qcom,msm_bus,num_cases = <4>;
qcom,msm_bus,active_only = <0>;
diff --git a/arch/arm/boot/dts/msm8974.dtsi b/arch/arm/boot/dts/msm8974.dtsi
index 20249be..22f9876 100644
--- a/arch/arm/boot/dts/msm8974.dtsi
+++ b/arch/arm/boot/dts/msm8974.dtsi
@@ -1031,6 +1031,8 @@
qcom,qseecom@fe806000 {
compatible = "qcom,qseecom";
+ reg = <0x7f00000 0x500000>;
+ reg-names = "secapp-region";
qcom,msm-bus,name = "qseecom-noc";
qcom,msm-bus,num-cases = <4>;
qcom,msm-bus,active-only = <0>;
@@ -1214,7 +1216,7 @@
};
qcom,msm-mem-hole {
compatible = "qcom,msm-mem-hole";
- qcom,memblock-remove = <0x8400000 0x7b00000>; /* Address and Size of Hole */
+ qcom,memblock-remove = <0x7f00000 0x8000000>; /* Address and Size of Hole */
};
qcom,smem@fa00000 {