tegra_common.mk 1.49 KB
Newer Older
1
#
2
# Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
Varun Wadekar's avatar
Varun Wadekar committed
3
# Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
4
#
dp-arm's avatar
dp-arm committed
5
# SPDX-License-Identifier: BSD-3-Clause
6
7
8
#

PLAT_INCLUDES		:=	-Iplat/nvidia/tegra/include/drivers \
9
				-Iplat/nvidia/tegra/include/lib \
10
				-Iplat/nvidia/tegra/include
11

12
13
include lib/xlat_tables_v2/xlat_tables.mk
PLAT_BL_COMMON_SOURCES	+=	${XLAT_TABLES_LIB_SRCS}
14
15
16

COMMON_DIR		:=	plat/nvidia/tegra/common

17
18
19
20
21
22
# Include GICv3 driver files
include drivers/arm/gic/v3/gicv3.mk
TEGRA_GICv3_SOURCES	:=	$(GICV3_SOURCES)				\
				plat/common/plat_gicv3.c			\
				${COMMON_DIR}/tegra_gicv3.c

23
24
25
26
27
28
TEGRA_GICv2_SOURCES	:=	drivers/arm/gic/common/gic_common.c		\
				drivers/arm/gic/v2/gicv2_main.c			\
				drivers/arm/gic/v2/gicv2_helpers.c		\
				plat/common/plat_gicv2.c			\
				${COMMON_DIR}/tegra_gicv2.c

29
BL31_SOURCES		+=	drivers/delay_timer/delay_timer.c		\
30
				drivers/io/io_storage.c				\
31
				plat/common/aarch64/crash_console_helpers.S	\
32
				${TEGRA_GICv2_SOURCES}				\
33
				${COMMON_DIR}/aarch64/tegra_helpers.S		\
34
				${COMMON_DIR}/lib/debug/profiler.c		\
35
				${COMMON_DIR}/tegra_bl31_setup.c		\
36
				${COMMON_DIR}/tegra_delay_timer.c		\
Varun Wadekar's avatar
Varun Wadekar committed
37
				${COMMON_DIR}/tegra_ehf.c			\
38
				${COMMON_DIR}/tegra_fiq_glue.c			\
39
				${COMMON_DIR}/tegra_io_storage.c		\
40
				${COMMON_DIR}/tegra_platform.c			\
41
				${COMMON_DIR}/tegra_pm.c			\
Varun Wadekar's avatar
Varun Wadekar committed
42
43
				${COMMON_DIR}/tegra_sip_calls.c			\
				${COMMON_DIR}/tegra_sdei.c
Varun Wadekar's avatar
Varun Wadekar committed
44
45
46
47

ifneq ($(ENABLE_STACK_PROTECTOR), 0)
BL31_SOURCES		+=	${COMMON_DIR}/tegra_stack_protector.c
endif