OSDN Git Service

ARM: dts: msm: configure default CMA region for sdm660
authorShiraz Hashim <shashim@codeaurora.org>
Mon, 16 Jan 2017 12:22:43 +0000 (17:52 +0530)
committerShiraz Hashim <shashim@codeaurora.org>
Mon, 16 Jan 2017 12:25:56 +0000 (17:55 +0530)
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>
arch/arm/boot/dts/qcom/sdm660.dtsi

index d8462c9..3a7dd1e 100644 (file)
                        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 {