]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdtdec: optionally add property no-map to created reserved memory node
authorEtienne Carriere <etienne.carriere@st.com>
Thu, 10 Sep 2020 08:49:59 +0000 (10:49 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:54:13 +0000 (12:54 -0600)
commitccaa5747bdeae4261199dd7e80771e4de1c550ca
treeab94e7a90a9402304aa0c5d0377992e74186ce4b
parent68de0679c940276b97c31b809168052f9d905505
fdtdec: optionally add property no-map to created reserved memory node

Add boolean input argument @no_map to helper function
fdtdec_add_reserved_memory() to add or not "no-map" property
for an added reserved memory node.

Property no-map is used by the Linux kernel to not not map memory
in its static memory mapping. It is needed for example for the|
consistency of system non-cached memory and to prevent speculative
accesses to some firewalled memory.

No functional change. A later change will update to OPTEE library to
add no-map property to OP-TEE reserved memory nodes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/riscv/lib/fdt_fixup.c
include/fdtdec.h
lib/fdtdec.c
lib/optee/optee.c
test/dm/fdtdec.c