Merge "ARM: dts: msm: add CMA heap allocation"

This commit is contained in:
qctecmdr 2020-07-15 04:17:45 -07:00 • committed by Gerrit - the friendly Code Review server
commit 642dc32bb4
4 changed files with 28 additions and 0 deletions

View file

@ -943,6 +943,16 @@ Example:
qcom,smmu-enabled;
};
* msm-audio-ion-cma
Required properties:
- compatible : "qcom,msm-audio-ion-cma"
Example:
qcom,msm-audio-ion-cma {
compatible = "qcom,msm-audio-ion-cma";
};
* msm-dai-tdm
[First Level Nodes]

View file

@ -7,6 +7,10 @@
};
&audio_apr {
msm_audio_ion_cma: qcom,msm-audio-ion-cma {
compatible = "qcom,msm-audio-ion-cma";
};
q6core: qcom,q6core-audio {
compatible = "qcom,q6core-audio";
#address-cells = <1>;

View file

@ -61,5 +61,11 @@
qcom,ion-heap-type = "HYP_CMA";
};
qcom,ion-heap@5 { /* AUDIO ML HEAP */
reg = <ION_AUDIO_ML_HEAP_ID>;
memory-region = <&audio_cma_mem>;
qcom,ion-heap-type = "DMA";
};
};
};

View file

@ -499,6 +499,14 @@
size = <0x0 0x1000000>;
};
audio_cma_mem: audio_cma_region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x1C00000>;
};
splash_memory:splash_region {
reg = <0x0 0xe1000000 0x0 0x02300000>;
label = "cont_splash_region";