Jacob Stiffler : linux: cmem.inc: Implement way to configure more complex CMEM config
Module: meta-ti Branch: master Commit: 1010d17019ba97d96edfab9f416818cd1b070ee5 URL: http://arago-project.org/git/meta-ti.git?a=commit;h=1010d17019ba97d96edfab9f416818cd1b070ee5
Author: Jacob Stiffler <[email protected]> Date: Thu Oct 29 18:06:06 2015 +0000
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 <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
---
recipes-kernel/linux/cmem.inc | 9 +--- recipes-kernel/linux/files/cmem.dtsi | 42 +++++++++++++------ recipes-kernel/linux/files/dra7xx/cmem.dtsi | 26 ++++++++++++ recipes-kernel/linux/files/k2hk-evm/cmem.dtsi | 54 +++++++++++++++++++++++++ 4 files changed, 110 insertions(+), 21 deletions(-)
recipes-kernel/linux/cmem.inc +2 -7
@@ -1,17 +1,12 @@ SRC_URI += "file://cmem.dtsi" -CMEM_BASE ?= "" -CMEM_SIZE ?= "" +RESERVE_CMEM ?= "0" do_setup_cmem() { - if [ ! -z "${CMEM_BASE}" ] + if [ "${RESERVE_CMEM}" == "1" ] then cp ${WORKDIR}/cmem.dtsi ${S}/arch/arm/boot/dts/${MACHINE}-cmem.dtsi - sed -i -e "s|__CMEM_BASE__|${CMEM_BASE}|g" \ - -e "s|__CMEM_SIZE__|${CMEM_SIZE}|g" \ - ${S}/arch/arm/boot/dts/${MACHINE}-cmem.dtsi - for dtb in ${KERNEL_DEVICETREE} do dts=`echo $dtb | sed -e 's|dtb$|dts|'`
recipes-kernel/linux/files/cmem.dtsi +28 -14
52 lines not on this page · raw message
recipes-kernel/linux/files/dra7xx/cmem.dtsi new file +26 -0
@@ -0,0 +1,26 @@ +/ { + 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>; + + #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 0x0a000000>; + }; + }; + +};
recipes-kernel/linux/files/k2hk-evm/cmem.dtsi new file +54 -0
54 lines not on this page · raw message