Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 1 | # |
Alexei Fedorov | caa1802 | 2020-07-14 10:47:25 +0100 | [diff] [blame] | 2 | # Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. |
Varun Wadekar | 087190f | 2020-05-16 22:10:09 -0700 | [diff] [blame] | 3 | # Copyright (c) 2020, NVIDIA Corporation. All rights reserved. |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 4 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 5 | # SPDX-License-Identifier: BSD-3-Clause |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 6 | # |
| 7 | |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 8 | PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \ |
Varun Wadekar | 4967c3d | 2017-07-21 13:34:16 -0700 | [diff] [blame] | 9 | -Iplat/nvidia/tegra/include/lib \ |
Varun Wadekar | 26dfb51 | 2019-01-17 16:36:23 -0800 | [diff] [blame] | 10 | -Iplat/nvidia/tegra/include |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 11 | |
Varun Wadekar | b513232 | 2017-04-10 15:30:17 -0700 | [diff] [blame] | 12 | include lib/xlat_tables_v2/xlat_tables.mk |
| 13 | PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 14 | |
Varun Wadekar | 0c9105e | 2019-06-13 15:32:11 -0700 | [diff] [blame] | 15 | TEGRA_COMMON := plat/nvidia/tegra/common |
| 16 | TEGRA_DRIVERS := plat/nvidia/tegra/drivers |
| 17 | TEGRA_LIBS := plat/nvidia/tegra/lib |
Varun Wadekar | b316e24 | 2015-05-19 16:48:04 +0530 | [diff] [blame] | 18 | |
Varun Wadekar | 5b7c50d | 2020-06-11 21:53:09 -0700 | [diff] [blame] | 19 | # Include GICv3 driver files |
| 20 | include drivers/arm/gic/v3/gicv3.mk |
| 21 | TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \ |
| 22 | plat/common/plat_gicv3.c \ |
Varun Wadekar | 0c9105e | 2019-06-13 15:32:11 -0700 | [diff] [blame] | 23 | ${TEGRA_COMMON}/tegra_gicv3.c |
Varun Wadekar | 5b7c50d | 2020-06-11 21:53:09 -0700 | [diff] [blame] | 24 | |
Alexei Fedorov | caa1802 | 2020-07-14 10:47:25 +0100 | [diff] [blame] | 25 | # Include GICv2 driver files |
| 26 | include drivers/arm/gic/v2/gicv2.mk |
| 27 | |
| 28 | TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \ |
Varun Wadekar | 1fd7049 | 2018-10-19 11:44:31 -0700 | [diff] [blame] | 29 | plat/common/plat_gicv2.c \ |
Varun Wadekar | 0c9105e | 2019-06-13 15:32:11 -0700 | [diff] [blame] | 30 | ${TEGRA_COMMON}/tegra_gicv2.c |
| 31 | |
| 32 | TEGRA_GICv3_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 33 | drivers/arm/gic/v3/arm_gicv3_common.c \ |
| 34 | drivers/arm/gic/v3/gicv3_main.c \ |
| 35 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 36 | plat/common/plat_gicv3.c \ |
| 37 | ${TEGRA_COMMON}/tegra_gicv3.c |
Varun Wadekar | 1fd7049 | 2018-10-19 11:44:31 -0700 | [diff] [blame] | 38 | |
Ambroise Vincent | 09a22e7 | 2019-05-29 14:04:16 +0100 | [diff] [blame] | 39 | BL31_SOURCES += drivers/delay_timer/delay_timer.c \ |
Varun Wadekar | 396530b | 2019-03-01 10:18:35 -0800 | [diff] [blame] | 40 | drivers/io/io_storage.c \ |
Ambroise Vincent | 09a22e7 | 2019-05-29 14:04:16 +0100 | [diff] [blame] | 41 | plat/common/aarch64/crash_console_helpers.S \ |
Varun Wadekar | 8b1068b | 2020-02-26 14:52:01 -0800 | [diff] [blame] | 42 | ${TEGRA_LIBS}/debug/profiler.c \ |
Varun Wadekar | 0c9105e | 2019-06-13 15:32:11 -0700 | [diff] [blame] | 43 | ${TEGRA_COMMON}/aarch64/tegra_helpers.S \ |
| 44 | ${TEGRA_LIBS}/debug/profiler.c \ |
| 45 | ${TEGRA_COMMON}/tegra_bl31_setup.c \ |
| 46 | ${TEGRA_COMMON}/tegra_delay_timer.c \ |
| 47 | ${TEGRA_COMMON}/tegra_ehf.c \ |
| 48 | ${TEGRA_COMMON}/tegra_fiq_glue.c \ |
| 49 | ${TEGRA_COMMON}/tegra_io_storage.c \ |
| 50 | ${TEGRA_COMMON}/tegra_platform.c \ |
| 51 | ${TEGRA_COMMON}/tegra_pm.c \ |
| 52 | ${TEGRA_COMMON}/tegra_sip_calls.c \ |
| 53 | ${TEGRA_COMMON}/tegra_sdei.c |
Varun Wadekar | 087190f | 2020-05-16 22:10:09 -0700 | [diff] [blame] | 54 | |
| 55 | ifneq ($(ENABLE_STACK_PROTECTOR), 0) |
Varun Wadekar | 0c9105e | 2019-06-13 15:32:11 -0700 | [diff] [blame] | 56 | BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c |
Varun Wadekar | 087190f | 2020-05-16 22:10:09 -0700 | [diff] [blame] | 57 | endif |