Skip to contentSkip to conversation

Sam Nelson : recipes-kernel: cmem.dtsi: Update memory sections for DDR and MSMC

PATCH Arago Project git 1 participant 1 message Dec 7, 2016

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: krogoth
Commit: a8af1cd2e614b3692512eb600acd4ec1c2a11133
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=a8af1cd2e614b3692512eb600acd4ec1c2a11133
Author: Sam Nelson <[email protected]>
Date:   Sat Dec  3 07:18:40 2016 +0000

recipes-kernel: cmem.dtsi: Update memory sections for DDR and MSMC

cmem.dtsi splits the already defined dsp_common_mpm_area DDR memory into a smaller MPM segment and other CMEM blocks.
The mpm_block_mem is removed and instead the original memory sections dsp_common_mpm_area and mpm_mem in the kernel dtb are updated to reflect

On the MSMC memory, cmem.dtsi defines a sram subnode instead of the reserved memory.
mpm MSMC areas are already captured in the kernel dtb.

---

 recipes-kernel/linux/files/k2e/cmem.dtsi      |   27 ++++----
 recipes-kernel/linux/files/k2g/cmem.dtsi      |   91 +++++++++++++------------
 recipes-kernel/linux/files/k2hk-evm/cmem.dtsi |   91 +++++++++++++------------
 recipes-kernel/linux/files/k2l-evm/cmem.dtsi  |   20 ++++--
 4 files changed, 120 insertions(+), 109 deletions(-)
recipes-kernel/linux/files/k2e/cmem.dtsi +14 -13
index 4c8e785..2a2909a 100644
@@ -1,22 +1,10 @@
 / {
 	reserved-memory {
-		mpm_block_mem_0: mpm_block_mem@820000000 {
-			reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
-			no-map;
-			status = "okay";
-		};
-
 		cmem_block_mem_0: cmem_block_mem@829000000 {
 			reg = <0x00000008 0x22000000 0x00000000 0x1E000000>;
 			no-map;
 			status = "okay";
 		};
-
-		cmem_block_mem_1: cmem_block_mem@00c080000 {
-			reg = <0x00000000 0x0c080000 0x00000000 0x000c0000>;
-			no-map;
-			status = "okay";
-		};
 	};
 
 	cmem {
@@ -36,7 +24,20 @@
 
 		cmem_block_1: cmem_block@1 {
 			reg = <1>;
-			memory-region = <&cmem_block_mem_1>;
+			sram = <&sram_cmem>;
 		};
 	};
 };
+
+&dsp_common_mpm_area {
+	reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
+};
+&mpm_mem {
+	reg = <0xa0000000 0x02000000>;
+};
+
+&msm_ram {
+	sram_cmem: sram-cmem@80000 {
+		reg = <0x80000 0xc0000>;
+	};
+};
recipes-kernel/linux/files/k2g/cmem.dtsi +46 -45

100 lines not on this page · raw message

recipes-kernel/linux/files/k2hk-evm/cmem.dtsi +46 -45

100 lines not on this page · raw message

recipes-kernel/linux/files/k2l-evm/cmem.dtsi +14 -6
index 4c8e785..8b09642 100644
@@ -1,10 +1,5 @@
 / {
 	reserved-memory {
-		mpm_block_mem_0: mpm_block_mem@820000000 {
-			reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
-			no-map;
-			status = "okay";
-		};
 
 		cmem_block_mem_0: cmem_block_mem@829000000 {
 			reg = <0x00000008 0x22000000 0x00000000 0x1E000000>;
@@ -36,7 +31,20 @@
 
 		cmem_block_1: cmem_block@1 {
 			reg = <1>;
-			memory-region = <&cmem_block_mem_1>;
+			sram = <&sram_cmem>;
 		};
 	};
 };
+
+&dsp_common_mpm_area {
+	reg = <0x00000008 0x20000000 0x00000000 0x02000000>;
+};
+&mpm_mem {
+	reg = <0xa0000000 0x02000000>;
+};
+
+&msm_ram {
+	sram_cmem: sram-cmem@80000 {
+		reg = <0x80000 0xc0000>;
+	};
+};