blob: a86a31535f919e2aff35b52e097ed0b0b460478a [file] [log] [blame]
Varun Wadekarb316e242015-05-19 16:48:04 +05301#
Varun Wadekar396530b2019-03-01 10:18:35 -08002# Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
Varun Wadekar087190f2020-05-16 22:10:09 -07003# Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
Varun Wadekarb316e242015-05-19 16:48:04 +05304#
dp-armfa3cf0b2017-05-03 09:38:09 +01005# SPDX-License-Identifier: BSD-3-Clause
Varun Wadekarb316e242015-05-19 16:48:04 +05306#
7
Varun Wadekarb316e242015-05-19 16:48:04 +05308PLAT_INCLUDES := -Iplat/nvidia/tegra/include/drivers \
Varun Wadekar4967c3d2017-07-21 13:34:16 -07009 -Iplat/nvidia/tegra/include/lib \
Varun Wadekar26dfb512019-01-17 16:36:23 -080010 -Iplat/nvidia/tegra/include
Varun Wadekarb316e242015-05-19 16:48:04 +053011
Varun Wadekarb5132322017-04-10 15:30:17 -070012include lib/xlat_tables_v2/xlat_tables.mk
13PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}
Varun Wadekarb316e242015-05-19 16:48:04 +053014
15COMMON_DIR := plat/nvidia/tegra/common
16
Varun Wadekar1fd70492018-10-19 11:44:31 -070017TEGRA_GICv2_SOURCES := drivers/arm/gic/common/gic_common.c \
18 drivers/arm/gic/v2/gicv2_main.c \
19 drivers/arm/gic/v2/gicv2_helpers.c \
20 plat/common/plat_gicv2.c \
21 ${COMMON_DIR}/tegra_gicv2.c
22
Ambroise Vincent09a22e72019-05-29 14:04:16 +010023BL31_SOURCES += drivers/delay_timer/delay_timer.c \
Varun Wadekar396530b2019-03-01 10:18:35 -080024 drivers/io/io_storage.c \
Ambroise Vincent09a22e72019-05-29 14:04:16 +010025 plat/common/aarch64/crash_console_helpers.S \
Varun Wadekar9f4a7d32018-10-19 11:42:28 -070026 ${TEGRA_GICv2_SOURCES} \
Varun Wadekarb316e242015-05-19 16:48:04 +053027 ${COMMON_DIR}/aarch64/tegra_helpers.S \
Varun Wadekar4967c3d2017-07-21 13:34:16 -070028 ${COMMON_DIR}/lib/debug/profiler.c \
Varun Wadekarb316e242015-05-19 16:48:04 +053029 ${COMMON_DIR}/tegra_bl31_setup.c \
Varun Wadekarbc74fec2015-07-16 15:47:03 +053030 ${COMMON_DIR}/tegra_delay_timer.c \
Varun Wadekarbef02f02020-04-17 19:09:21 -070031 ${COMMON_DIR}/tegra_ehf.c \
Varun Wadekardc799302015-12-28 16:36:42 -080032 ${COMMON_DIR}/tegra_fiq_glue.c \
Varun Wadekar396530b2019-03-01 10:18:35 -080033 ${COMMON_DIR}/tegra_io_storage.c \
Varun Wadekar28dcc212016-07-20 10:28:51 -070034 ${COMMON_DIR}/tegra_platform.c \
Varun Wadekarb316e242015-05-19 16:48:04 +053035 ${COMMON_DIR}/tegra_pm.c \
Varun Wadekarbef02f02020-04-17 19:09:21 -070036 ${COMMON_DIR}/tegra_sip_calls.c \
37 ${COMMON_DIR}/tegra_sdei.c
Varun Wadekar087190f2020-05-16 22:10:09 -070038
39ifneq ($(ENABLE_STACK_PROTECTOR), 0)
40BL31_SOURCES += ${COMMON_DIR}/tegra_stack_protector.c
41endif