blob: ac636fa8fa091af14da4bb7356b7ca079f61ce73 [file] [log] [blame]
Jacky Baia6177002019-03-06 17:15:06 +08001#
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +00002# Copyright (c) 2019-2020, ARM Limited and Contributors. All rights reserved.
Jacky Baia6177002019-03-06 17:15:06 +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/imx8mm/include
10
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000011# Include GICv3 driver files
12include drivers/arm/gic/v3/gicv3.mk
13
14IMX_GIC_SOURCES := ${GICV3_SOURCES} \
Jacky Baia6177002019-03-06 17:15:06 +080015 plat/common/plat_gicv3.c \
16 plat/common/plat_psci_common.c \
17 plat/imx/common/plat_imx8_gic.c
18
19BL31_SOURCES += plat/imx/common/imx8_helpers.S \
20 plat/imx/imx8m/gpc_common.c \
Jacky Bai91c6d322019-05-21 20:24:52 +080021 plat/imx/imx8m/imx_aipstz.c \
Jacky Bai64130a32019-07-18 13:43:17 +080022 plat/imx/imx8m/imx_rdc.c \
Jacky Bai3bf04a52019-06-12 17:41:47 +080023 plat/imx/imx8m/imx8m_caam.c \
Jacky Baia6177002019-03-06 17:15:06 +080024 plat/imx/imx8m/imx8m_psci_common.c \
25 plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c \
26 plat/imx/imx8m/imx8mm/imx8mm_psci.c \
27 plat/imx/imx8m/imx8mm/gpc.c \
28 plat/imx/common/imx8_topology.c \
Leonard Crestez402bd522019-05-08 22:29:21 +030029 plat/imx/common/imx_sip_handler.c \
30 plat/imx/common/imx_sip_svc.c \
Jacky Baia6177002019-03-06 17:15:06 +080031 plat/imx/common/imx_uart_console.S \
Peng Fan57e982c2020-07-27 21:22:14 +080032 plat/imx/common/imx_ehf.c \
33 plat/imx/common/imx_sdei.c \
Jacky Baia6177002019-03-06 17:15:06 +080034 lib/xlat_tables/aarch64/xlat_tables.c \
35 lib/xlat_tables/xlat_tables_common.c \
36 lib/cpus/aarch64/cortex_a53.S \
Jacky Baia6177002019-03-06 17:15:06 +080037 drivers/arm/tzc/tzc380.c \
38 drivers/delay_timer/delay_timer.c \
39 drivers/delay_timer/generic_delay_timer.c \
40 ${IMX_GIC_SOURCES}
41
42USE_COHERENT_MEM := 1
43RESET_TO_BL31 := 1
44A53_DISABLE_NON_TEMPORAL_HINT := 0
Jacky Baia6177002019-03-06 17:15:06 +080045
46ERRATA_A53_835769 := 1
47ERRATA_A53_843419 := 1
48ERRATA_A53_855873 := 1
Jacky Bai2a763ba2019-07-18 13:34:09 +080049
50BL32_BASE ?= 0xbe000000
51$(eval $(call add_define,BL32_BASE))
52
53BL32_SIZE ?= 0x2000000
54$(eval $(call add_define,BL32_SIZE))
Igor Opaniuk9fc5cb62020-03-05 22:10:41 +020055
56IMX_BOOT_UART_BASE ?= 0x30890000
57$(eval $(call add_define,IMX_BOOT_UART_BASE))
Peng Fan57e982c2020-07-27 21:22:14 +080058
59EL3_EXCEPTION_HANDLING := 1
60SDEI_SUPPORT := 1