tegra_common.mk 1.87 KB
Newer Older
1
#
2
# Copyright (c) 2015-2020, 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
17
TEGRA_COMMON		:=	plat/nvidia/tegra/common
TEGRA_DRIVERS		:=	plat/nvidia/tegra/drivers
TEGRA_LIBS		:=	plat/nvidia/tegra/lib
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			\
23
				${TEGRA_COMMON}/tegra_gicv3.c
24

25
26
27
28
# Include GICv2 driver files
include drivers/arm/gic/v2/gicv2.mk

TEGRA_GICv2_SOURCES	:=	${GICV2_SOURCES}				\
29
				plat/common/plat_gicv2.c			\
30
31
32
33
34
35
36
37
				${TEGRA_COMMON}/tegra_gicv2.c

TEGRA_GICv3_SOURCES	:=	drivers/arm/gic/common/gic_common.c		\
				drivers/arm/gic/v3/arm_gicv3_common.c		\
				drivers/arm/gic/v3/gicv3_main.c			\
				drivers/arm/gic/v3/gicv3_helpers.c		\
				plat/common/plat_gicv3.c			\
				${TEGRA_COMMON}/tegra_gicv3.c
38

39
BL31_SOURCES		+=	drivers/delay_timer/delay_timer.c		\
40
				drivers/io/io_storage.c				\
41
				plat/common/aarch64/crash_console_helpers.S	\
42
				${TEGRA_LIBS}/debug/profiler.c			\
43
44
45
46
47
48
49
50
51
52
				${TEGRA_COMMON}/aarch64/tegra_helpers.S		\
				${TEGRA_LIBS}/debug/profiler.c			\
				${TEGRA_COMMON}/tegra_bl31_setup.c		\
				${TEGRA_COMMON}/tegra_delay_timer.c		\
				${TEGRA_COMMON}/tegra_fiq_glue.c		\
				${TEGRA_COMMON}/tegra_io_storage.c		\
				${TEGRA_COMMON}/tegra_platform.c		\
				${TEGRA_COMMON}/tegra_pm.c			\
				${TEGRA_COMMON}/tegra_sip_calls.c		\
				${TEGRA_COMMON}/tegra_sdei.c
Varun Wadekar's avatar
Varun Wadekar committed
53
54

ifneq ($(ENABLE_STACK_PROTECTOR), 0)
55
BL31_SOURCES		+=	${TEGRA_COMMON}/tegra_stack_protector.c
Varun Wadekar's avatar
Varun Wadekar committed
56
endif
57
58
59
ifeq (${EL3_EXCEPTION_HANDLING},1)
BL31_SOURCES		+=	plat/common/aarch64/plat_ehf.c
endif