Skip to contentSkip to conversation

linux: cmem: Update reserved CMEM regions

PATCH New Jacob Stiffler 1 participant 1 message Jan 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 linux: cmem: Update reserved CMEM regions

* dra7xx:
- Increase DDR region required to pass OpenCL conformance
- Add OCMC region
* k2e-evm, k2l-evm:
- Add reserved regions for these machines

---
v2 changes:
* Add more details to the commit message

 recipes-kernel/linux/files/dra7xx/cmem.dtsi  | 20 +++++++++++--
 recipes-kernel/linux/files/k2e-evm/cmem.dtsi | 42 ++++++++++++++++++++++++++++
 recipes-kernel/linux/files/k2l-evm/cmem.dtsi | 42 ++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+), 3 deletions(-)
 create mode 100644 recipes-kernel/linux/files/k2e-evm/cmem.dtsi
 create mode 100644 recipes-kernel/linux/files/k2l-evm/cmem.dtsi
recipes-kernel/linux/files/dra7xx/cmem.dtsi +17 -3
index d91faf9..c7781c4 100644
@@ -1,10 +1,20 @@
 / {
         reserved-memory {
+                #address-cells = <2>;
+                #size-cells = <2>;
+                ranges;
+
                 cmem_block_mem_0: cmem_block_mem@a0000000 {
-                        reg = <0x0 0xa0000000 0x0 0x0a000000>;
+                        reg = <0x0 0xa0000000 0x0 0x0c000000>;
                         no-map;
                         status = "okay";
                 };
+
+		cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
+			reg = <0x0 0x40500000 0x0 0x100000>;
+			no-map;
+			status = "okay";
+		};
         };
 
         cmem {
@@ -19,8 +29,12 @@
                 cmem_block_0: cmem_block@0 {
                         reg = <0>;
                         memory-region = <&cmem_block_mem_0>;
-                        cmem-buf-pools = <1 0x0 0x0a000000>;
+                        cmem-buf-pools = <1 0x0 0x0c000000>;
                 };
-        };
 
+		cmem_block_1: cmem_block@1 {
+			reg = <1>;
+			memory-region = <&cmem_block_mem_1_ocmc3>;
+		};
+        };
 };
recipes-kernel/linux/files/k2e-evm/cmem.dtsi new file +42 -0

42 lines not on this page · raw message

recipes-kernel/linux/files/k2l-evm/cmem.dtsi new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.9.1