OSDN Git Service

ARM: dts: msm: add ion heaps for msmfalcon
authorShiraz Hashim <shashim@codeaurora.org>
Wed, 13 Jul 2016 07:18:44 +0000 (12:48 +0530)
committerShiraz Hashim <shashim@codeaurora.org>
Mon, 18 Jul 2016 07:23:07 +0000 (12:53 +0530)
Add device tree configuration corresponding to all
supported ion heaps for msmfalcon.

Change-Id: I639e8bfb1275a1b8c8fa5bff3a46f9b34fe49ffe
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
arch/arm/boot/dts/qcom/msmfalcon-ion.dtsi [new file with mode: 0644]
arch/arm/boot/dts/qcom/msmfalcon.dtsi

diff --git a/arch/arm/boot/dts/qcom/msmfalcon-ion.dtsi b/arch/arm/boot/dts/qcom/msmfalcon-ion.dtsi
new file mode 100644 (file)
index 0000000..f6deef3
--- /dev/null
@@ -0,0 +1,52 @@
+/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+&soc {
+       qcom,ion {
+               compatible = "qcom,msm-ion";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               system_heap: qcom,ion-heap@25 {
+                       reg = <25>;
+                       qcom,ion-heap-type = "SYSTEM";
+               };
+
+               system_contig_heap: qcom,ion-heap@21 {
+                       reg = <21>;
+                       qcom,ion-heap-type = "SYSTEM_CONTIG";
+               };
+
+               qcom,ion-heap@22 { /* ADSP HEAP */
+                       reg = <22>;
+                       memory-region = <&adsp_mem>;
+                       qcom,ion-heap-type = "DMA";
+               };
+
+               qcom,ion-heap@27 { /* QSEECOM HEAP */
+                       reg = <27>;
+                       memory-region = <&qseecom_mem>;
+                       qcom,ion-heap-type = "DMA";
+               };
+
+               qcom,ion-heap@10 { /* SECURE DISPLAY HEAP */
+                       reg = <10>;
+                       memory-region = <&secure_display_memory>;
+                       qcom,ion-heap-type = "HYP_CMA";
+               };
+
+               qcom,ion-heap@9 {
+                       reg = <9>;
+                       qcom,ion-heap-type = "SYSTEM_SECURE";
+               };
+       };
+};
index 5bb8134..0a777aa 100644 (file)
                #clock-cells = <1>;
        };
 };
+
+#include "msmfalcon-ion.dtsi"