xref: /rk3399_ARM-atf/plat/imx/imx8qx/platform.mk (revision c3bdd3d3cf0f9cdf3be117e39386492e645a1bb5)
10bc18309SAnson Huang#
2*4f8d5b01SJi Luo# Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
30bc18309SAnson Huang#
40bc18309SAnson Huang# SPDX-License-Identifier: BSD-3-Clause
50bc18309SAnson Huang#
60bc18309SAnson Huang
7*4f8d5b01SJi Luo# Translation tables library
8*4f8d5b01SJi Luoinclude lib/xlat_tables_v2/xlat_tables.mk
9*4f8d5b01SJi Luo
100bc18309SAnson HuangPLAT_INCLUDES		:=	-Iplat/imx/imx8qx/include		\
110bc18309SAnson Huang				-Iplat/imx/common/include		\
120bc18309SAnson Huang
13a6ea06f5SAlexei Fedorov# Include GICv3 driver files
14a6ea06f5SAlexei Fedorovinclude drivers/arm/gic/v3/gicv3.mk
15a6ea06f5SAlexei Fedorov
16a6ea06f5SAlexei FedorovIMX_GIC_SOURCES	:=		${GICV3_SOURCES}			\
170bc18309SAnson Huang				plat/common/plat_gicv3.c		\
180bc18309SAnson Huang				plat/imx/common/plat_imx8_gic.c
190bc18309SAnson Huang
200bc18309SAnson HuangBL31_SOURCES		+=	plat/imx/common/lpuart_console.S	\
210bc18309SAnson Huang				plat/imx/common/imx8_helpers.S		\
220bc18309SAnson Huang				plat/imx/imx8qx/imx8qx_bl31_setup.c	\
230bc18309SAnson Huang				plat/imx/imx8qx/imx8qx_psci.c		\
240bc18309SAnson Huang				plat/imx/common/imx8_topology.c		\
258972694eSAnson Huang				plat/imx/common/imx8_psci.c		\
26025514baSAnson Huang				plat/imx/common/imx_sip_svc.c		\
27025514baSAnson Huang				plat/imx/common/imx_sip_handler.c	\
28762688bfSAnson Huang				plat/common/plat_psci_common.c		\
290bc18309SAnson Huang				lib/cpus/aarch64/cortex_a35.S		\
30*4f8d5b01SJi Luo				${XLAT_TABLES_LIB_SRCS}			\
310bc18309SAnson Huang				${IMX_GIC_SOURCES}			\
320bc18309SAnson Huang
330bc18309SAnson Huanginclude plat/imx/common/sci/sci_api.mk
340bc18309SAnson Huang
350bc18309SAnson HuangUSE_COHERENT_MEM	:=	1
360bc18309SAnson HuangRESET_TO_BL31		:=	1
3730617ccaSIgor Opaniuk
3830617ccaSIgor OpaniukIMX_DEBUG_UART		?= 	0
3930617ccaSIgor Opaniuk$(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART}))
4030617ccaSIgor Opaniuk
4130617ccaSIgor OpaniukDEBUG_CONSOLE		?= 	0
4230617ccaSIgor Opaniuk$(eval $(call add_define,DEBUG_CONSOLE))
43