blob: 0f3ad1a20542bd4507baeec61543a5b0fd9b317b [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
Jacky Baicf7a1402019-12-03 10:38:11 +080016IMX_DRAM_SOURCES := plat/imx/imx8m/ddr/dram.c \
Jacky Baid746daa12019-11-25 13:19:37 +080017 plat/imx/imx8m/ddr/clock.c \
18 plat/imx/imx8m/ddr/dram_retention.c \
19 plat/imx/imx8m/ddr/ddr4_dvfs.c \
20 plat/imx/imx8m/ddr/lpddr4_dvfs.c
Jacky Baicf7a1402019-12-03 10:38:11 +080021
22
Jacky Bai9bd2f842019-11-28 13:16:33 +080023IMX_GIC_SOURCES := ${GICV3_SOURCES} \
24 plat/common/plat_gicv3.c \
25 plat/common/plat_psci_common.c \
26 plat/imx/common/plat_imx8_gic.c
27
28BL31_SOURCES += plat/imx/common/imx8_helpers.S \
29 plat/imx/imx8m/gpc_common.c \
30 plat/imx/imx8m/imx_aipstz.c \
31 plat/imx/imx8m/imx_rdc.c \
32 plat/imx/imx8m/imx8m_caam.c \
Jacky Bai3c3c2682020-01-07 14:53:54 +080033 plat/imx/imx8m/imx8m_csu.c \
Jacky Bai9bd2f842019-11-28 13:16:33 +080034 plat/imx/imx8m/imx8m_psci_common.c \
35 plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c \
36 plat/imx/imx8m/imx8mn/imx8mn_psci.c \
37 plat/imx/imx8m/imx8mn/gpc.c \
38 plat/imx/common/imx8_topology.c \
39 plat/imx/common/imx_sip_handler.c \
40 plat/imx/common/imx_sip_svc.c \
41 plat/imx/common/imx_uart_console.S \
42 lib/cpus/aarch64/cortex_a53.S \
43 drivers/arm/tzc/tzc380.c \
44 drivers/delay_timer/delay_timer.c \
45 drivers/delay_timer/generic_delay_timer.c \
Jacky Baicf7a1402019-12-03 10:38:11 +080046 ${IMX_DRAM_SOURCES} \
Jacky Bai9bd2f842019-11-28 13:16:33 +080047 ${IMX_GIC_SOURCES} \
48 ${XLAT_TABLES_LIB_SRCS}
49
50USE_COHERENT_MEM := 1
51RESET_TO_BL31 := 1
52A53_DISABLE_NON_TEMPORAL_HINT := 0
53
54ERRATA_A53_835769 := 1
55ERRATA_A53_843419 := 1
56ERRATA_A53_855873 := 1
57
58BL32_BASE ?= 0xbe000000
59$(eval $(call add_define,BL32_BASE))
60
61BL32_SIZE ?= 0x2000000
62$(eval $(call add_define,BL32_SIZE))
63
64IMX_BOOT_UART_BASE ?= 0x30890000
65$(eval $(call add_define,IMX_BOOT_UART_BASE))
Peng Fan61adab72021-03-25 18:46:20 +080066
Jacky Bai210ec7d2022-03-28 16:11:23 +080067EL3_EXCEPTION_HANDLING := $(SDEI_SUPPORT)
68ifeq (${SDEI_SUPPORT}, 1)
69BL31_SOURCES += plat/imx/common/imx_ehf.c \
70 plat/imx/common/imx_sdei.c
71endif
Ji Luoe329b3d2020-02-20 23:47:21 +080072
73ifeq (${SPD},trusty)
74 BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
75endif