From 436dcfe2614314fa9c6e8d14bb30c9196b2cf7f0 Mon Sep 17 00:00:00 2001 From: Krishna Manikandan Date: Tue, 22 Sep 2020 12:28:52 +0530 Subject: [PATCH] ARM: dts: msm: Add entry for non secure display heap memory Add entry to use non secure display heap memory for TUI usecase for shima target. Allocated buffers from this heap will be exported to the secondary VM to use it for composition during TUI session. Change-Id: I86387eb36a5babce9a3d53a2ca15ab4deff40117 --- qcom/shima-ion.dtsi | 5 +++++ qcom/shima.dtsi | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/qcom/shima-ion.dtsi b/qcom/shima-ion.dtsi index fc45b51bedde..2b67df9f2277 100644 --- a/qcom/shima-ion.dtsi +++ b/qcom/shima-ion.dtsi @@ -53,5 +53,10 @@ memory-region = <&audio_cma_mem>; qcom,ion-heap-type = "DMA"; }; + qcom,ion-heap@3 { /* NON SECURE DISPLAY HEAP */ + reg = ; + memory-region = <&non_secure_display_memory>; + qcom,ion-heap-type = "DMA"; + }; }; }; diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 798ef30db12d..c82806ce3634 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -469,6 +469,14 @@ reg = <0x0 0xe3300000 0x0 0x0100000>; label = "dfps_data_memory"; }; + + non_secure_display_memory: non_secure_display_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0x6400000>; + }; }; chosen {