diff options
author | Jun Nie <jun.nie@linaro.org> | 2021-04-21 15:35:43 +0800 |
---|---|---|
committer | Jun Nie <jun.nie@linaro.org> | 2021-04-21 15:39:50 +0800 |
commit | 7f4ae63301c7ba85449cd491a4770c19159dc24c (patch) | |
tree | e53e9d54fb73a420dc112438fac8048c90d9684e | |
parent | 2254dbe74cab75657d4a1c5325f26a712a673067 (diff) |
plat: imx8m: Build spmc manifest code
Build spmc manifest dts code
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Change-Id: Id134d94b613840044f2dfbc74530c765128b8c12
-rw-r--r-- | plat/imx/imx8m/imx8mp/fdts/imx_spmc_manifest.dts | 38 | ||||
-rw-r--r-- | plat/imx/imx8m/imx8mp/platform.mk | 9 |
2 files changed, 47 insertions, 0 deletions
diff --git a/plat/imx/imx8m/imx8mp/fdts/imx_spmc_manifest.dts b/plat/imx/imx8m/imx8mp/fdts/imx_spmc_manifest.dts new file mode 100644 index 000000000..add2ac1dc --- /dev/null +++ b/plat/imx/imx8m/imx8mp/fdts/imx_spmc_manifest.dts @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2020, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ +/dts-v1/; + +/ { + compatible = "arm,ffa-core-manifest-1.0"; + #address-cells = <2>; + #size-cells = <1>; + + attribute { + spmc_id = <0x8000>; + maj_ver = <0x1>; + min_ver = <0x0>; + exec_state = <0x0>; + load_address = <0x0 0x56000000>; + entrypoint = <0x0 0x56000000>; + binary_size = <0x80000>; + }; + + optee_spmc { + compatible = "arm,optee-spmc"; + maj_ver = <0x1>; + min_ver = <0x0>; + sp1 { + debug_name = "crypto"; + load_address = <0x0 0x61000000>; + format = "elf"; + }; + sp2 { + debug_name = "secure_storage"; + load_address = <0x0 0x60000000>; + format = "elf"; + }; + }; +}; diff --git a/plat/imx/imx8m/imx8mp/platform.mk b/plat/imx/imx8m/imx8mp/platform.mk index dcf578adc..e0e886a3d 100644 --- a/plat/imx/imx8m/imx8mp/platform.mk +++ b/plat/imx/imx8m/imx8mp/platform.mk @@ -57,6 +57,15 @@ BL31_SOURCES += plat/common/plat_spmd_manifest.c \ common/fdt_wrappers.c \ ${LIBFDT_SRCS} +ifeq ($(MX8MP_SPMC_MANIFEST_DTS),) +MX8MP_SPMC_MANIFEST_DTS := plat/imx/imx8m/imx8mp/fdts/imx_spmc_manifest.dts +endif + +FDT_SOURCES += ${MX8MP_SPMC_MANIFEST_DTS} +IMX_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${MX8MP_SPMC_MANIFEST_DTS})).dtb + +# Add the TOS_FW_CONFIG to FIP and specify the same to certtool +$(eval $(call TOOL_ADD_PAYLOAD,${IMX_TOS_FW_CONFIG},--tos-fw-config,${IMX_TOS_FW_CONFIG})) endif ifeq (${NEED_BL2},yes) |