summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorAkshay Belsare <Akshay.Belsare@xilinx.com>2022-05-03 05:27:38 +0530
committerMark Hatle <mhatle@xilinx.com>2022-05-04 15:01:27 -0700
commit48a70b151434c00f2518eb079833b8f8d8ff6ec3 (patch)
treed8743136452fbfa83e0edadc928e37d3249693eb /meta-xilinx-bsp
parentf8d5a51bbb029dfe5a9f8217f4c93fdec0607616 (diff)
downloadmeta-xilinx-48a70b151434c00f2518eb079833b8f8d8ff6ec3.tar.gz
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 <Akshay.Belsare@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-bsp/uboot-device-tree/files/pnc.dtsi13
-rw-r--r--meta-xilinx-bsp/recipes-bsp/uboot-device-tree/uboot-device-tree.bbappend9
2 files changed, 22 insertions, 0 deletions
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 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 pnc-reserved-memory@70000000{
8 compatible = "pnc,secure-memory";
9 reg = <0x0 0x70000000 0x0 0x0FF00000>;
10 no-map;
11 };
12 };
13};
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 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2
3SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'provencore', ' file://pnc.dtsi', '', d)}"
4
5do_configure:append() {
6 if [ ${@bb.utils.contains('MACHINE_FEATURES', 'provencore', 'true', '', d)} ]; then
7 echo '#include "pnc.dtsi"' >> ${DT_FILES_PATH}/system-top.dts
8 fi
9}