blob: 85b5f3dc423ae1fed7721e31dad8d56e1035ced4 [file] [log] [blame]
Anson Huang73b18532018-06-05 16:13:45 +08001#
Ji Luoe329b3d2020-02-20 23:47:21 +08002# Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
Anson Huang73b18532018-06-05 16:13:45 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Ji Luoe329b3d2020-02-20 23:47:21 +08007# Translation tables library
8include lib/xlat_tables_v2/xlat_tables.mk
9
Anson Huang73b18532018-06-05 16:13:45 +080010PLAT_INCLUDES := -Iplat/imx/imx8qx/include \
11 -Iplat/imx/common/include \
12
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000013# Include GICv3 driver files
14include drivers/arm/gic/v3/gicv3.mk
15
16IMX_GIC_SOURCES := ${GICV3_SOURCES} \
Anson Huang73b18532018-06-05 16:13:45 +080017 plat/common/plat_gicv3.c \
18 plat/imx/common/plat_imx8_gic.c
19
20BL31_SOURCES += plat/imx/common/lpuart_console.S \
21 plat/imx/common/imx8_helpers.S \
22 plat/imx/imx8qx/imx8qx_bl31_setup.c \
23 plat/imx/imx8qx/imx8qx_psci.c \
24 plat/imx/common/imx8_topology.c \
Anson Huangd2b90552018-07-12 10:52:55 +080025 plat/imx/common/imx8_psci.c \
Anson Huangf753d462019-01-15 10:34:04 +080026 plat/imx/common/imx_sip_svc.c \
27 plat/imx/common/imx_sip_handler.c \
Anson Huang10cd8172018-07-12 14:17:19 +080028 plat/common/plat_psci_common.c \
Anson Huang73b18532018-06-05 16:13:45 +080029 lib/cpus/aarch64/cortex_a35.S \
Ji Luoe329b3d2020-02-20 23:47:21 +080030 ${XLAT_TABLES_LIB_SRCS} \
Anson Huang73b18532018-06-05 16:13:45 +080031 ${IMX_GIC_SOURCES} \
32
33include plat/imx/common/sci/sci_api.mk
34
Anson Huang73b18532018-06-05 16:13:45 +080035USE_COHERENT_MEM := 1
36RESET_TO_BL31 := 1
Igor Opaniuk72d86082020-03-23 17:21:05 +020037
38IMX_DEBUG_UART ?= 0
39$(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART}))
40
41DEBUG_CONSOLE ?= 0
42$(eval $(call add_define,DEBUG_CONSOLE))