blob: f35fa00203e1dd9a46e7998038b106197fae1acd [file] [log] [blame]
Anson Huang62f8f7a2018-06-11 12:54:05 +08001#
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +00002# Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
Anson Huang62f8f7a2018-06-11 12:54:05 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7PLAT_INCLUDES := -Iplat/imx/imx8qm/include \
8 -Iplat/imx/common/include \
9
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000010# Include GICv3 driver files
11include drivers/arm/gic/v3/gicv3.mk
12
13IMX_GIC_SOURCES := ${GICV3_SOURCES} \
Anson Huang62f8f7a2018-06-11 12:54:05 +080014 plat/common/plat_gicv3.c \
15 plat/common/plat_psci_common.c \
16 plat/imx/common/plat_imx8_gic.c
17
18BL31_SOURCES += plat/imx/common/lpuart_console.S \
19 plat/imx/common/imx8_helpers.S \
20 plat/imx/imx8qm/imx8qm_bl31_setup.c \
21 plat/imx/imx8qm/imx8qm_psci.c \
22 plat/imx/common/imx8_topology.c \
Anson Huang344cbce2018-07-12 14:26:07 +080023 plat/imx/common/imx8_psci.c \
Anson Huangf753d462019-01-15 10:34:04 +080024 plat/imx/common/imx_sip_svc.c \
25 plat/imx/common/imx_sip_handler.c \
Anson Huang62f8f7a2018-06-11 12:54:05 +080026 lib/xlat_tables/aarch64/xlat_tables.c \
27 lib/xlat_tables/xlat_tables_common.c \
28 lib/cpus/aarch64/cortex_a53.S \
29 lib/cpus/aarch64/cortex_a72.S \
Anson Huang62f8f7a2018-06-11 12:54:05 +080030 drivers/arm/cci/cci.c \
31 ${IMX_GIC_SOURCES} \
32
33include plat/imx/common/sci/sci_api.mk
34
Anson Huang62f8f7a2018-06-11 12:54:05 +080035USE_COHERENT_MEM := 1
36RESET_TO_BL31 := 1
Anson Huang62f8f7a2018-06-11 12:54:05 +080037A53_DISABLE_NON_TEMPORAL_HINT := 0
Anson Huang62f8f7a2018-06-11 12:54:05 +080038ERRATA_A72_859971 := 1
Anson Huang2f38c132019-01-24 10:58:58 +080039
40ERRATA_A53_835769 := 1
41ERRATA_A53_843419 := 1
42ERRATA_A53_855873 := 1
Igor Opaniukfd432852020-03-16 22:55:42 +020043
44IMX_DEBUG_UART ?= 0
45$(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART}))
46
47DEBUG_CONSOLE ?= 0
48$(eval $(call add_define,DEBUG_CONSOLE))