diff options
author | Akshay Belsare <Akshay.Belsare@xilinx.com> | 2022-05-03 05:27:37 +0530 |
---|---|---|
committer | Mark Hatle <mhatle@xilinx.com> | 2022-05-04 15:01:25 -0700 |
commit | f8d5a51bbb029dfe5a9f8217f4c93fdec0607616 (patch) | |
tree | 9743ebae0d5938416b96d41ecaf2749bfa327f55 /meta-xilinx-bsp/recipes-bsp | |
parent | ea12b72b50072cf43ce0aa142100d2a3166f21e7 (diff) | |
download | meta-xilinx-f8d5a51bbb029dfe5a9f8217f4c93fdec0607616.tar.gz |
meta-xilinx-bsp: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
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/recipes-bsp')
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend | 6 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/device-tree/files/pnc.dtsi | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend index df31778c..94020f25 100644 --- a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend +++ b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend | |||
@@ -20,4 +20,10 @@ SRC_URI:append:kc705-microblazeel = " \ | |||
20 | file://pl.dtsi \ | 20 | file://pl.dtsi \ |
21 | file://system-conf.dtsi \ | 21 | file://system-conf.dtsi \ |
22 | " | 22 | " |
23 | SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'provencore', ' file://pnc.dtsi', '', d)}" | ||
23 | 24 | ||
25 | do_configure:append() { | ||
26 | if [ ${@bb.utils.contains('MACHINE_FEATURES', 'provencore', 'true', '', d)} ]; then | ||
27 | echo '#include "pnc.dtsi"' >> ${DT_FILES_PATH}/system-top.dts | ||
28 | fi | ||
29 | } | ||
diff --git a/meta-xilinx-bsp/recipes-bsp/device-tree/files/pnc.dtsi b/meta-xilinx-bsp/recipes-bsp/device-tree/files/pnc.dtsi new file mode 100644 index 00000000..760b76be --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/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 | }; | ||