1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-16 14:27:48 +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 c960677116
commit 1010d17019
4 changed files with 110 additions and 21 deletions
+2 -7
View File
@@ -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|'`