Skip to contentSkip to conversation

linux-ti-staging: Increase CMEM for am574x only

PATCH New Djordje Senicic 1 participant 1 message Aug 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-ti-staging: Increase CMEM for am574x only

* CMEM increased to 384MB is required by TIDL to run both DSP and EVEs concurrently

---
 recipes-kernel/linux/cmem.inc                      |  1 +
 recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi
recipes-kernel/linux/cmem.inc +1 -0
index 8325c00..b17ca9d 100644
@@ -10,6 +10,7 @@ CMEM_MACHINE_dra7xx-hs-evm = "dra71x dra72x dra74x"
 # Set cmem.dtsi per machine or machine variant
 CMEM_DTSI = "cmem.dtsi"
 CMEM_DTSI_am571x = "cmem-am571x.dtsi"
+CMEM_DTSI_am574x = "cmem-am574x.dtsi"
 CMEM_DTSI_dra71x = "cmem-dra71x.dtsi"
 CMEM_DTSI_dra72x = "cmem-dra72x.dtsi"
 
recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi new file +29 -0
new file mode 100644
index 0000000..9d207db
@@ -0,0 +1,29 @@
+/ {
+        reserved-memory {
+                #address-cells = <2>;
+                #size-cells = <2>;
+                ranges;
+
+                cmem_block_mem_0: cmem_block_mem@a0000000 {
+                        reg = <0x0 0xa0000000 0x0 0x18000000>;
+                        no-map;
+                        status = "okay";
+                };
+        };
+
+        cmem {
+                compatible = "ti,cmem";
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+		#pool-size-cells = <2>;
+
+                status = "okay";
+
+                cmem_block_0: cmem_block@0 {
+                        reg = <0>;
+                        memory-region = <&cmem_block_mem_0>;
+                        cmem-buf-pools = <1 0x0 0x18000000>;
+                };
+        };
+};
Signature · 1 line
1.9.1