Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 1 | # |
Alexei Fedorov | 2f13d6c | 2020-02-21 10:17:26 +0000 | [diff] [blame] | 2 | # Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. |
Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | PLAT_INCLUDES := -Iplat/imx/imx8qx/include \ |
| 8 | -Iplat/imx/common/include \ |
| 9 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 10 | # Include GICv3 driver files |
| 11 | include drivers/arm/gic/v3/gicv3.mk |
| 12 | |
| 13 | IMX_GIC_SOURCES := ${GICV3_SOURCES} \ |
Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 14 | plat/common/plat_gicv3.c \ |
| 15 | plat/imx/common/plat_imx8_gic.c |
| 16 | |
| 17 | BL31_SOURCES += plat/imx/common/lpuart_console.S \ |
| 18 | plat/imx/common/imx8_helpers.S \ |
| 19 | plat/imx/imx8qx/imx8qx_bl31_setup.c \ |
| 20 | plat/imx/imx8qx/imx8qx_psci.c \ |
| 21 | plat/imx/common/imx8_topology.c \ |
Anson Huang | d2b9055 | 2018-07-12 10:52:55 +0800 | [diff] [blame] | 22 | plat/imx/common/imx8_psci.c \ |
Anson Huang | f753d46 | 2019-01-15 10:34:04 +0800 | [diff] [blame] | 23 | plat/imx/common/imx_sip_svc.c \ |
| 24 | plat/imx/common/imx_sip_handler.c \ |
Anson Huang | 10cd817 | 2018-07-12 14:17:19 +0800 | [diff] [blame] | 25 | plat/common/plat_psci_common.c \ |
Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 26 | lib/xlat_tables/xlat_tables_common.c \ |
| 27 | lib/xlat_tables/aarch64/xlat_tables.c \ |
| 28 | lib/cpus/aarch64/cortex_a35.S \ |
Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 29 | ${IMX_GIC_SOURCES} \ |
| 30 | |
| 31 | include plat/imx/common/sci/sci_api.mk |
| 32 | |
Anson Huang | 73b1853 | 2018-06-05 16:13:45 +0800 | [diff] [blame] | 33 | USE_COHERENT_MEM := 1 |
| 34 | RESET_TO_BL31 := 1 |
Igor Opaniuk | 72d8608 | 2020-03-23 17:21:05 +0200 | [diff] [blame] | 35 | |
| 36 | IMX_DEBUG_UART ?= 0 |
| 37 | $(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART})) |
| 38 | |
| 39 | DEBUG_CONSOLE ?= 0 |
| 40 | $(eval $(call add_define,DEBUG_CONSOLE)) |