summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorBo-Chen Chen <rex-bc.chen@mediatek.com>2022-09-08 15:31:05 +0800
committerBo-Chen Chen <rex-bc.chen@mediatek.com>2022-09-22 19:26:15 +0800
commit24476b2e6128dae2ca2ac46344e18f6f02eae7bf (patch)
treeb31899a1de832fa0590d40a1e45402eead989223 /plat
parent3d4b6f932444c7b0f70f8654b92193b294527056 (diff)
downloadarm-trusted-firmware-24476b2e6128dae2ca2ac46344e18f6f02eae7bf.tar.gz
fix(mediatek): wrap cold_boot.h with MTK_SIP_KERNEL_BOOT_ENABLE
We should wrap cold_boot.h with MTK_SIP_KERNEL_BOOT_ENABLE to avoid build error. Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Idfd760fbb7c782d4fc9de674d86a7123e0129c0d
Diffstat (limited to 'plat')
-rw-r--r--plat/mediatek/common/mtk_smc_handlers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plat/mediatek/common/mtk_smc_handlers.c b/plat/mediatek/common/mtk_smc_handlers.c
index 24b978c87..51a960fc3 100644
--- a/plat/mediatek/common/mtk_smc_handlers.c
+++ b/plat/mediatek/common/mtk_smc_handlers.c
@@ -6,9 +6,11 @@
#include <assert.h>
#include <errno.h>
+#if MTK_SIP_KERNEL_BOOT_ENABLE
+#include <cold_boot.h>
+#endif
#include <common/debug.h>
#include <common/runtime_svc.h>
-#include <cold_boot.h>
#include <lib/mtk_init/mtk_init.h>
#include <mtk_sip_svc.h>