blob: c57edbe2af531f7124f001fea2d4e90f9d25c894 [file] [log] [blame]
Anson Huang62f8f7a2018-06-11 12:54:05 +08001#
Ji Luoe329b3d2020-02-20 23:47:21 +08002# Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
Anson Huang62f8f7a2018-06-11 12:54:05 +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 Huang62f8f7a2018-06-11 12:54:05 +080010PLAT_INCLUDES := -Iplat/imx/imx8qm/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 Huang62f8f7a2018-06-11 12:54:05 +080017 plat/common/plat_gicv3.c \
18 plat/common/plat_psci_common.c \
19 plat/imx/common/plat_imx8_gic.c
20
21BL31_SOURCES += plat/imx/common/lpuart_console.S \
22 plat/imx/common/imx8_helpers.S \
23 plat/imx/imx8qm/imx8qm_bl31_setup.c \
24 plat/imx/imx8qm/imx8qm_psci.c \
25 plat/imx/common/imx8_topology.c \
Anson Huang344cbce2018-07-12 14:26:07 +080026 plat/imx/common/imx8_psci.c \
Anson Huangf753d462019-01-15 10:34:04 +080027 plat/imx/common/imx_sip_svc.c \
28 plat/imx/common/imx_sip_handler.c \
Anson Huang62f8f7a2018-06-11 12:54:05 +080029 lib/cpus/aarch64/cortex_a53.S \
30 lib/cpus/aarch64/cortex_a72.S \
Anson Huang62f8f7a2018-06-11 12:54:05 +080031 drivers/arm/cci/cci.c \
Ji Luoe329b3d2020-02-20 23:47:21 +080032 ${XLAT_TABLES_LIB_SRCS} \
Anson Huang62f8f7a2018-06-11 12:54:05 +080033 ${IMX_GIC_SOURCES} \
34
35include plat/imx/common/sci/sci_api.mk
36
Anson Huang62f8f7a2018-06-11 12:54:05 +080037USE_COHERENT_MEM := 1
38RESET_TO_BL31 := 1
Anson Huang62f8f7a2018-06-11 12:54:05 +080039A53_DISABLE_NON_TEMPORAL_HINT := 0
Anson Huang62f8f7a2018-06-11 12:54:05 +080040ERRATA_A72_859971 := 1
Anson Huang2f38c132019-01-24 10:58:58 +080041
42ERRATA_A53_835769 := 1
43ERRATA_A53_843419 := 1
44ERRATA_A53_855873 := 1
Igor Opaniukfd432852020-03-16 22:55:42 +020045
46IMX_DEBUG_UART ?= 0
47$(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART}))
48
49DEBUG_CONSOLE ?= 0
50$(eval $(call add_define,DEBUG_CONSOLE))