Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A216DE00D3F; Fri, 2 Dec 2016 17:18:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4BCA9E00D2C for ; Fri, 2 Dec 2016 17:18:55 -0800 (PST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id uB31ItLT030843 for ; Fri, 2 Dec 2016 19:18:55 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id uB31ItVv000737 for ; Fri, 2 Dec 2016 19:18:55 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Fri, 2 Dec 2016 19:18:54 -0600 Received: from uda0862859a.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id uB31IhVb016023; Fri, 2 Dec 2016 19:18:54 -0600 From: Sam Nelson To: Date: Fri, 2 Dec 2016 20:18:40 -0500 Message-ID: <1480727920-62651-3-git-send-email-sam.nelson@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480727920-62651-1-git-send-email-sam.nelson@ti.com> References: <1480727920-62651-1-git-send-email-sam.nelson@ti.com> MIME-Version: 1.0 Subject: [PATCH 3/3] recipes-kernel: cmem.dtsi: Update memory sections for DDR and MSMC X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 01:18:56 -0000 Content-Type: text/plain 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. Signed-off-by: Sam Nelson --- 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(-) diff --git a/recipes-kernel/linux/files/k2e/cmem.dtsi b/recipes-kernel/linux/files/k2e/cmem.dtsi index 4c8e785..2a2909a 100644 --- a/recipes-kernel/linux/files/k2e/cmem.dtsi +++ b/recipes-kernel/linux/files/k2e/cmem.dtsi @@ -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>; + }; +}; diff --git a/recipes-kernel/linux/files/k2g/cmem.dtsi b/recipes-kernel/linux/files/k2g/cmem.dtsi index f30bf5b..4716581 100644 --- a/recipes-kernel/linux/files/k2g/cmem.dtsi +++ b/recipes-kernel/linux/files/k2g/cmem.dtsi @@ -1,54 +1,55 @@ / { - 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 0x29000000 0x00000000 0x17000000>; - no-map; - status = "okay"; - }; - - cmem_block_mem_1: cmem_block_mem@00c000000 { - reg = <0x00000000 0x0c000000 0x00000000 0x00100000>; - no-map; - status = "okay"; - }; - - cmem_block_mem_2: cmem_block_mem@822000000 { - reg = <0x00000008 0x22000000 0x00000000 0x07000000>; - no-map; - status = "okay"; - }; - }; - - cmem { - compatible = "ti,cmem"; - #address-cells = <1>; - #size-cells = <0>; + reserved-memory { + + cmem_block_mem_0: cmem_block_mem@829000000 { + reg = <0x00000008 0x29000000 0x00000000 0x17000000>; + no-map; + status = "okay"; + }; + + cmem_block_mem_2: cmem_block_mem@822000000 { + reg = <0x00000008 0x22000000 0x00000000 0x07000000>; + no-map; + status = "okay"; + }; + }; + + cmem { + compatible = "ti,cmem"; + #address-cells = <1>; + #size-cells = <0>; #pool-size-cells = <2>; - status = "okay"; + status = "okay"; - cmem_block_0: cmem_block@0 { - reg = <0>; - memory-region = <&cmem_block_mem_0>; - cmem-buf-pools = <1 0x00000000 0x17000000>; - }; + cmem_block_0: cmem_block@0 { + reg = <0>; + memory-region = <&cmem_block_mem_0>; + cmem-buf-pools = <1 0x00000000 0x17000000>; + }; - cmem_block_1: cmem_block@1 { - reg = <1>; - memory-region = <&cmem_block_mem_1>; - }; + cmem_block_1: cmem_block@1 { + reg = <1>; + sram = <&sram_cmem>; + }; - cmem_block_2: cmem_block@2 { - reg = <2>; - memory-region = <&cmem_block_mem_2>; - }; - }; + cmem_block_2: cmem_block@2 { + reg = <2>; + memory-region = <&cmem_block_mem_2>; + }; + }; +}; + +&dsp_common_mpm_area { + reg = <0x00000008 0x20000000 0x00000000 0x02000000>; +}; +&mpm_mem { + reg = <0xa0000000 0x02000000>; +}; +&msm_ram { + sram_cmem: sram-cmem@a0000 { + reg = <0xa0000 0x57000>; + }; }; diff --git a/recipes-kernel/linux/files/k2hk-evm/cmem.dtsi b/recipes-kernel/linux/files/k2hk-evm/cmem.dtsi index 98e9e7c..e5927ba 100644 --- a/recipes-kernel/linux/files/k2hk-evm/cmem.dtsi +++ b/recipes-kernel/linux/files/k2hk-evm/cmem.dtsi @@ -1,54 +1,55 @@ / { - 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 0x29000000 0x00000000 0x17000000>; - no-map; - status = "okay"; - }; - - cmem_block_mem_1: cmem_block_mem@00c100000 { - reg = <0x00000000 0x0c100000 0x00000000 0x00480000>; - no-map; - status = "okay"; - }; - - cmem_block_mem_2: cmem_block_mem@822000000 { - reg = <0x00000008 0x22000000 0x00000000 0x07000000>; - no-map; - status = "okay"; - }; - }; - - cmem { - compatible = "ti,cmem"; - #address-cells = <1>; - #size-cells = <0>; + reserved-memory { + + cmem_block_mem_0: cmem_block_mem@829000000 { + reg = <0x00000008 0x29000000 0x00000000 0x17000000>; + no-map; + status = "okay"; + }; + + cmem_block_mem_2: cmem_block_mem@822000000 { + reg = <0x00000008 0x22000000 0x00000000 0x07000000>; + no-map; + status = "okay"; + }; + }; + + cmem { + compatible = "ti,cmem"; + #address-cells = <1>; + #size-cells = <0>; #pool-size-cells = <2>; - status = "okay"; + status = "okay"; - cmem_block_0: cmem_block@0 { - reg = <0>; - memory-region = <&cmem_block_mem_0>; - cmem-buf-pools = <1 0x00000000 0x17000000>; - }; + cmem_block_0: cmem_block@0 { + reg = <0>; + memory-region = <&cmem_block_mem_0>; + cmem-buf-pools = <1 0x00000000 0x17000000>; + }; - cmem_block_1: cmem_block@1 { - reg = <1>; - memory-region = <&cmem_block_mem_1>; - }; + cmem_block_1: cmem_block@1 { + reg = <1>; + sram = <&sram_cmem>; + }; - cmem_block_2: cmem_block@2 { - reg = <2>; - memory-region = <&cmem_block_mem_2>; - }; - }; + cmem_block_2: cmem_block@2 { + reg = <2>; + memory-region = <&cmem_block_mem_2>; + }; + }; +}; + +&dsp_common_mpm_area { + reg = <0x00000008 0x20000000 0x00000000 0x02000000>; +}; +&mpm_mem { + reg = <0xa0000000 0x02000000>; +}; +&msm_ram { + sram_cmem: sram-cmem@100000 { + reg = <0x100000 0x480000>; + }; }; diff --git a/recipes-kernel/linux/files/k2l-evm/cmem.dtsi b/recipes-kernel/linux/files/k2l-evm/cmem.dtsi index 4c8e785..8b09642 100644 --- a/recipes-kernel/linux/files/k2l-evm/cmem.dtsi +++ b/recipes-kernel/linux/files/k2l-evm/cmem.dtsi @@ -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>; + }; +}; -- 1.9.1