OSDN Git Service

ARM: dts: msm: configure default CMA region for msmcobalt
authorLiam Mark <lmark@codeaurora.org>
Fri, 3 Jun 2016 18:07:36 +0000 (11:07 -0700)
committerKyle Yan <kyan@codeaurora.org>
Tue, 12 Jul 2016 01:56:28 +0000 (18:56 -0700)
Configure the size of the default CMA region in DT.
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.

CRs-Fixed: 1024204
Change-Id: I7d999382dcb6223d84424173a1726c250520ad04
Signed-off-by: Liam Mark <lmark@codeaurora.org>
arch/arm/boot/dts/qcom/msmcobalt.dtsi

index e7ea6f4..cd14932 100644 (file)
                        alignment = <0 0x200000>;
                        size = <0 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;
+               };
        };
 };