Jacky Bai | 07ed02c | 2020-06-03 14:28:45 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2019-2020 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | PLAT_INCLUDES := -Iplat/imx/common/include \ |
| 8 | -Iplat/imx/imx8m/include \ |
| 9 | -Iplat/imx/imx8m/imx8mp/include |
| 10 | # Translation tables library |
| 11 | include lib/xlat_tables_v2/xlat_tables.mk |
| 12 | |
| 13 | # Include GICv3 driver files |
| 14 | include drivers/arm/gic/v3/gicv3.mk |
| 15 | |
| 16 | IMX_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 | |
| 21 | BL31_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 \ |
| 26 | plat/imx/imx8m/imx8m_psci_common.c \ |
| 27 | plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c \ |
| 28 | plat/imx/imx8m/imx8mp/imx8mp_psci.c \ |
| 29 | plat/imx/imx8m/imx8mp/gpc.c \ |
| 30 | plat/imx/common/imx8_topology.c \ |
Peng Fan | 5cbabbc | 2021-03-25 18:46:58 +0800 | [diff] [blame] | 31 | plat/imx/common/imx_ehf.c \ |
| 32 | plat/imx/common/imx_sdei.c \ |
Jacky Bai | 07ed02c | 2020-06-03 14:28:45 +0800 | [diff] [blame] | 33 | plat/imx/common/imx_sip_handler.c \ |
| 34 | plat/imx/common/imx_sip_svc.c \ |
| 35 | plat/imx/common/imx_uart_console.S \ |
| 36 | lib/cpus/aarch64/cortex_a53.S \ |
| 37 | 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 | ${XLAT_TABLES_LIB_SRCS} |
| 42 | |
| 43 | USE_COHERENT_MEM := 1 |
| 44 | RESET_TO_BL31 := 1 |
| 45 | A53_DISABLE_NON_TEMPORAL_HINT := 0 |
| 46 | |
| 47 | ERRATA_A53_835769 := 1 |
| 48 | ERRATA_A53_843419 := 1 |
| 49 | ERRATA_A53_855873 := 1 |
| 50 | |
| 51 | BL32_BASE ?= 0x56000000 |
| 52 | $(eval $(call add_define,BL32_BASE)) |
| 53 | |
| 54 | BL32_SIZE ?= 0x2000000 |
| 55 | $(eval $(call add_define,BL32_SIZE)) |
| 56 | |
| 57 | IMX_BOOT_UART_BASE ?= 0x30890000 |
| 58 | $(eval $(call add_define,IMX_BOOT_UART_BASE)) |
Peng Fan | 5cbabbc | 2021-03-25 18:46:58 +0800 | [diff] [blame] | 59 | |
| 60 | EL3_EXCEPTION_HANDLING := 1 |
| 61 | SDEI_SUPPORT := 1 |