summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShiraz Hashim <shashim@codeaurora.org>2017-01-16 17:52:43 +0530
committerShiraz Hashim <shashim@codeaurora.org>2017-01-16 17:55:56 +0530
commit086dd2c4a8111e4ab7d84d4f6907b4272965471c (patch)
tree53a7b5895a877a8ae5a75fb45afb1d36e9e0bd63
parent2326bcf687b715c7773270ba9cc6aaf5fedc1dbb (diff)
ARM: dts: msm: configure default CMA region for sdm660
Configure the size of the default CMA region to 32 MB in DT for sdm660. Configuring the default CMA region in the DT is cleaner than using CONFIG_CMA_SIZE_MBYTES since it is easier to configure per target and the alloc ranges can be specified in DT. Change-Id: I64d4e1ee379b2a3110ecd403e7ed838948df6ca3 Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
-rw-r--r--arch/arm/boot/dts/qcom/sdm660.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom/sdm660.dtsi b/arch/arm/boot/dts/qcom/sdm660.dtsi
index d8462c939ece..3a7dd1e96d81 100644
--- a/arch/arm/boot/dts/qcom/sdm660.dtsi
+++ b/arch/arm/boot/dts/qcom/sdm660.dtsi
@@ -325,6 +325,16 @@
alignment = <0x0 0x400000>;
size = <0x0 0x5c00000>;
};
+
+ /* global autoconfigured region for contiguous allocations */
+ linux,cma {
+ compatible = "shared-dma-pool";
+ alloc-ranges = <0 0x00000000 0 0xffffffff>;
+ reusable;
+ alignment = <0 0x400000>;
+ size = <0 0x2000000>;
+ linux,cma-default;
+ };
};
bluetooth: bt_wcn3990 {