summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2018-11-28 16:19:51 +0800
committerJi Luo <ji.luo@nxp.com>2019-01-31 12:41:00 +0800
commitfd421f74dbd570dba8233f84780a3a0e91e2101e (patch)
tree0437c25e938bec59c6f23ba147e83098b098fdee /lib
parent33a2b5d57ab94f5a0c057ce5b603f2b36fc37f61 (diff)
MA-14051 Enable trusty for imx8q xen
Open configs to add trusty os support for imx8q xen build. The rpmb keyslot package must be checked and copied to secure memory before trusty os boot. Change-Id: I66201783fa8439f2685377c10f257f064057dcfa Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/avb/fsl/fsl_avbkey.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/avb/fsl/fsl_avbkey.c b/lib/avb/fsl/fsl_avbkey.c
index 719ff02aac..26afe2448d 100644
--- a/lib/avb/fsl/fsl_avbkey.c
+++ b/lib/avb/fsl/fsl_avbkey.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
- * Copyright 2017 NXP
+ * Copyright 2017-2019 NXP
* SPDX-License-Identifier: GPL-2.0+
*
*/
@@ -71,6 +71,9 @@ int read_keyslot_package(struct keyslot_package* kp) {
struct blk_desc *dev_desc = NULL;
struct mmc *mmc;
+#ifdef CONFIG_IMX8_TRUSTY_XEN
+ mmcc = 0;
+#endif
mmc = find_mmc_device(mmcc);
if (!mmc) {
printf("boota: cannot find '%d' mmc device\n", mmcc);
@@ -702,7 +705,8 @@ int rbkidx_erase(void) {
#endif /* AVB_RPMB */
#ifdef CONFIG_SPL_BUILD
-#if defined(CONFIG_IMX_TRUSTY_OS) && !defined(CONFIG_AVB_ATX)
+#if defined (CONFIG_IMX8_TRUSTY_XEN) || \
+ (defined(CONFIG_IMX_TRUSTY_OS) && !defined(CONFIG_AVB_ATX))
int check_rpmb_blob(struct mmc *mmc)
{
int ret = 0;