blob: 901a974a591e7be6c4b0f0cc8c8d5606dec3b6af [file] [log] [blame]
Bai Ping06e325e2018-10-28 00:12:34 +08001#
Ji Luoe329b3d2020-02-20 23:47:21 +08002# Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved.
Bai Ping06e325e2018-10-28 00:12:34 +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
Bai Ping06e325e2018-10-28 00:12:34 +080010PLAT_INCLUDES := -Iplat/imx/common/include \
11 -Iplat/imx/imx8m/include \
12 -Iplat/imx/imx8m/imx8mq/include
13
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000014# Include GICv3 driver files
15include drivers/arm/gic/v3/gicv3.mk
16
17IMX_GIC_SOURCES := ${GICV3_SOURCES} \
Bai Ping06e325e2018-10-28 00:12:34 +080018 plat/common/plat_gicv3.c \
19 plat/common/plat_psci_common.c \
20 plat/imx/common/plat_imx8_gic.c
21
22BL31_SOURCES += plat/imx/common/imx8_helpers.S \
23 plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c \
24 plat/imx/imx8m/imx8mq/imx8mq_psci.c \
Jacky Baif7dc4012019-03-06 16:58:18 +080025 plat/imx/imx8m/gpc_common.c \
Jacky Bai91c6d322019-05-21 20:24:52 +080026 plat/imx/imx8m/imx_aipstz.c \
Jacky Bai3bf04a52019-06-12 17:41:47 +080027 plat/imx/imx8m/imx8m_caam.c \
Jacky Baif7dc4012019-03-06 16:58:18 +080028 plat/imx/imx8m/imx8m_psci_common.c \
Bai Ping06e325e2018-10-28 00:12:34 +080029 plat/imx/imx8m/imx8mq/gpc.c \
30 plat/imx/common/imx8_topology.c \
Leonard Crestez402bd522019-05-08 22:29:21 +030031 plat/imx/common/imx_sip_handler.c \
32 plat/imx/common/imx_sip_svc.c \
Bai Ping06e325e2018-10-28 00:12:34 +080033 plat/imx/common/imx_uart_console.S \
Bai Ping06e325e2018-10-28 00:12:34 +080034 lib/cpus/aarch64/cortex_a53.S \
Bai Ping06e325e2018-10-28 00:12:34 +080035 drivers/arm/tzc/tzc380.c \
Jacky Baif7dc4012019-03-06 16:58:18 +080036 drivers/delay_timer/delay_timer.c \
37 drivers/delay_timer/generic_delay_timer.c \
Ji Luoe329b3d2020-02-20 23:47:21 +080038 ${XLAT_TABLES_LIB_SRCS} \
Bai Ping06e325e2018-10-28 00:12:34 +080039 ${IMX_GIC_SOURCES}
40
Lucas Stachd36013e2022-12-08 16:44:00 +010041ENABLE_PIE := 1
Bai Ping06e325e2018-10-28 00:12:34 +080042USE_COHERENT_MEM := 1
43RESET_TO_BL31 := 1
44A53_DISABLE_NON_TEMPORAL_HINT := 0
Anson Huang0f03da62019-01-24 11:00:14 +080045
46ERRATA_A53_835769 := 1
47ERRATA_A53_843419 := 1
48ERRATA_A53_855873 := 1
Jacky Bai2a763ba2019-07-18 13:34:09 +080049
50BL32_BASE ?= 0xfe000000
51$(eval $(call add_define,BL32_BASE))
52
53BL32_SIZE ?= 0x2000000
54$(eval $(call add_define,BL32_SIZE))
Ji Luoe329b3d2020-02-20 23:47:21 +080055
Lucas Stach1f783152022-12-08 15:54:26 +010056IMX_BOOT_UART_BASE ?= 0x30860000
57$(eval $(call add_define,IMX_BOOT_UART_BASE))
58
Ji Luoe329b3d2020-02-20 23:47:21 +080059ifeq (${SPD},trusty)
60 BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
61endif