From 48a70b151434c00f2518eb079833b8f8d8ff6ec3 Mon Sep 17 00:00:00 2001 From: Akshay Belsare Date: Tue, 3 May 2022 05:27:38 +0530 Subject: meta-xilinx-bsp:uboot-device-tree: provencore memory reservation Provencore Linux driver and testapp is enabled through MACHINE_FEATURES. When provencore is enabled, reserve memory required for provencore through uboot device tree. This patch adds pnc.dtsi to system-top.dts file when provencore is enabled. pnc.dtsi contains the memory address and memory size that needs to be reserved. Signed-off-by: Akshay Belsare Signed-off-by: Mark Hatle --- .../recipes-bsp/uboot-device-tree/files/pnc.dtsi | 13 +++++++++++++ .../uboot-device-tree/uboot-device-tree.bbappend | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 meta-xilinx-bsp/recipes-bsp/uboot-device-tree/files/pnc.dtsi create mode 100644 meta-xilinx-bsp/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend (limited to 'meta-xilinx-bsp') diff --git a/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/files/pnc.dtsi b/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/files/pnc.dtsi new file mode 100644 index 00000000..760b76be --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/files/pnc.dtsi @@ -0,0 +1,13 @@ +/ { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + pnc-reserved-memory@70000000{ + compatible = "pnc,secure-memory"; + reg = <0x0 0x70000000 0x0 0x0FF00000>; + no-map; + }; + }; +}; diff --git a/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend b/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend new file mode 100644 index 00000000..f01276b2 --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'provencore', ' file://pnc.dtsi', '', d)}" + +do_configure:append() { + if [ ${@bb.utils.contains('MACHINE_FEATURES', 'provencore', 'true', '', d)} ]; then + echo '#include "pnc.dtsi"' >> ${DT_FILES_PATH}/system-top.dts + fi +} -- cgit v1.2.3-54-g00ecf