1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-27 14:28:05 +00:00

linux: cmem.inc: Implement way to configure more complex CMEM config

* Supply the entire cmem.dtsi per machine
  - Disabled by default
  - Currently only supported for dra7xx and k2hk-evm
* Enable by setting RESERVE_CMEM = "1"

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Jacob Stiffler
2015-10-29 18:06:06 +00:00
committed by Denys Dmytriyenko
parent b1b013c158
commit 31e0f4b5aa
4 changed files with 110 additions and 21 deletions
+28 -14
View File
@@ -1,24 +1,38 @@
/*
* This is a placeholder for CMEM reserved memory declarations. This
* is simply an example and does not actually reserve any memory for
* CMEM.
*
* The commented sections below provide an example for how to provide
* a reserved memory region for CMEM to use as a buffer pool.
*/
/ {
reserved-memory {
cmem_block_mem_0: cmem_block_mem@__CMEM_BASE__ {
reg = <0x__CMEM_BASE__ 0x__CMEM_SIZE__>;
no-map;
status = "okay";
};
};
/*
reserved-memory {
cmem_block_mem_0: cmem_block_mem@a0000000 {
reg = <0x0 0xa0000000 0x0 0x0a000000>;
no-map;
status = "okay";
};
};
*/
cmem {
compatible = "ti,cmem";
#address-cells = <1>;
#size-cells = <0>;
cmem {
compatible = "ti,cmem";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
#pool-size-cells = <2>;
status = "disabled";
/*
status = "okay";
cmem_block_0: cmem_block@0 {
reg = <0>;
memory-region = <&cmem_block_mem_0>;
cmem-buf-pools = <1 0x__CMEM_SIZE__>;
cmem-buf-pools = <1 0x0 0x0a000000>;
};
*/
};
};