blob: 54be41b7d0aaeb08e636fd8b79697af8a6aa8960 [file] [log] [blame]
Jacky Bai9bd2f842019-11-28 13:16:33 +08001#
Jacky Bai210ec7d2022-03-28 16:11:23 +08002# Copyright 2019-2022 NXP
Jacky Bai9bd2f842019-11-28 13:16:33 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7PLAT_INCLUDES := -Iplat/imx/common/include \
8 -Iplat/imx/imx8m/include \
9 -Iplat/imx/imx8m/imx8mn/include
10# Translation tables library
11include lib/xlat_tables_v2/xlat_tables.mk
12
13# Include GICv3 driver files
14include drivers/arm/gic/v3/gicv3.mk
15
16IMX_GIC_SOURCES := ${GICV3_SOURCES} \
17 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/imx8_helpers.S \
22 plat/imx/imx8m/gpc_common.c \
23 plat/imx/imx8m/imx_aipstz.c \
24 plat/imx/imx8m/imx_rdc.c \
25 plat/imx/imx8m/imx8m_caam.c \
Jacky Bai3c3c2682020-01-07 14:53:54 +080026 plat/imx/imx8m/imx8m_csu.c \
Jacky Bai9bd2f842019-11-28 13:16:33 +080027 plat/imx/imx8m/imx8m_psci_common.c \
28 plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c \
29 plat/imx/imx8m/imx8mn/imx8mn_psci.c \
30 plat/imx/imx8m/imx8mn/gpc.c \
31 plat/imx/common/imx8_topology.c \
32 plat/imx/common/imx_sip_handler.c \
33 plat/imx/common/imx_sip_svc.c \
34 plat/imx/common/imx_uart_console.S \
35 lib/cpus/aarch64/cortex_a53.S \
36 drivers/arm/tzc/tzc380.c \
37 drivers/delay_timer/delay_timer.c \
38 drivers/delay_timer/generic_delay_timer.c \
39 ${IMX_GIC_SOURCES} \
40 ${XLAT_TABLES_LIB_SRCS}
41
42USE_COHERENT_MEM := 1
43RESET_TO_BL31 := 1
44A53_DISABLE_NON_TEMPORAL_HINT := 0
45
46ERRATA_A53_835769 := 1
47ERRATA_A53_843419 := 1
48ERRATA_A53_855873 := 1
49
50BL32_BASE ?= 0xbe000000
51$(eval $(call add_define,BL32_BASE))
52
53BL32_SIZE ?= 0x2000000
54$(eval $(call add_define,BL32_SIZE))
55
56IMX_BOOT_UART_BASE ?= 0x30890000
57$(eval $(call add_define,IMX_BOOT_UART_BASE))
Peng Fan61adab72021-03-25 18:46:20 +080058
Jacky Bai210ec7d2022-03-28 16:11:23 +080059EL3_EXCEPTION_HANDLING := $(SDEI_SUPPORT)
60ifeq (${SDEI_SUPPORT}, 1)
61BL31_SOURCES += plat/imx/common/imx_ehf.c \
62 plat/imx/common/imx_sdei.c
63endif
Ji Luoe329b3d2020-02-20 23:47:21 +080064
65ifeq (${SPD},trusty)
66 BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
67endif