1#
2# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7PLAT_INCLUDES		:=	-Iplat/imx/common/include		\
8				-Iplat/imx/imx8m/include		\
9				-Iplat/imx/imx8m/imx8mq/include
10
11# Include GICv3 driver files
12include drivers/arm/gic/v3/gicv3.mk
13
14IMX_GIC_SOURCES		:=	${GICV3_SOURCES}			\
15				plat/common/plat_gicv3.c		\
16				plat/common/plat_psci_common.c		\
17				plat/imx/common/plat_imx8_gic.c
18
19BL31_SOURCES		+=	plat/imx/common/imx8_helpers.S			\
20				plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c	\
21				plat/imx/imx8m/imx8mq/imx8mq_psci.c		\
22				plat/imx/imx8m/gpc_common.c			\
23				plat/imx/imx8m/imx_aipstz.c			\
24				plat/imx/imx8m/imx8m_caam.c			\
25				plat/imx/imx8m/imx8m_psci_common.c		\
26				plat/imx/imx8m/imx8mq/gpc.c			\
27				plat/imx/common/imx8_topology.c			\
28				plat/imx/common/imx_sip_handler.c		\
29				plat/imx/common/imx_sip_svc.c			\
30				plat/imx/common/imx_uart_console.S		\
31				lib/xlat_tables/aarch64/xlat_tables.c		\
32				lib/xlat_tables/xlat_tables_common.c		\
33				lib/cpus/aarch64/cortex_a53.S			\
34				drivers/arm/tzc/tzc380.c			\
35				drivers/delay_timer/delay_timer.c		\
36				drivers/delay_timer/generic_delay_timer.c	\
37				${IMX_GIC_SOURCES}
38
39USE_COHERENT_MEM	:=	1
40RESET_TO_BL31		:=	1
41A53_DISABLE_NON_TEMPORAL_HINT := 0
42
43ERRATA_A53_835769	:=	1
44ERRATA_A53_843419	:=	1
45ERRATA_A53_855873	:=	1
46
47BL32_BASE		?=	0xfe000000
48$(eval $(call add_define,BL32_BASE))
49
50BL32_SIZE		?=	0x2000000
51$(eval $(call add_define,BL32_SIZE))
52