| 1 |
# |
| 2 |
# Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved. |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: BSD-3-Clause |
| 5 |
# |
| 6 |
|
| 7 |
# Translation tables library |
| 8 |
include lib/xlat_tables_v2/xlat_tables.mk |
| 9 |
|
| 10 |
PLAT_INCLUDES := -Iplat/imx/imx8qx/include \ |
| 11 |
-Iplat/imx/common/include \ |
| 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/imx/common/plat_imx8_gic.c |
| 19 |
|
| 20 |
BL31_SOURCES += plat/imx/common/lpuart_console.S \ |
| 21 |
plat/imx/common/imx8_helpers.S \ |
| 22 |
plat/imx/imx8qx/imx8qx_bl31_setup.c \ |
| 23 |
plat/imx/imx8qx/imx8qx_psci.c \ |
| 24 |
plat/imx/common/imx8_topology.c \ |
| 25 |
plat/imx/common/imx8_psci.c \ |
| 26 |
plat/imx/common/imx_sip_svc.c \ |
| 27 |
plat/imx/common/imx_sip_handler.c \ |
| 28 |
plat/common/plat_psci_common.c \ |
| 29 |
lib/cpus/aarch64/cortex_a35.S \ |
| 30 |
${XLAT_TABLES_LIB_SRCS} \ |
| 31 |
${IMX_GIC_SOURCES} \ |
| 32 |
|
| 33 |
include plat/imx/common/sci/sci_api.mk |
| 34 |
|
| 35 |
USE_COHERENT_MEM := 1 |
| 36 |
RESET_TO_BL31 := 1 |
| 37 |
|
| 38 |
IMX_DEBUG_UART ?= 0 |
| 39 |
$(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART})) |
| 40 |
|
| 41 |
DEBUG_CONSOLE ?= 0 |
| 42 |
$(eval $(call add_define,DEBUG_CONSOLE)) |