blob: bb8bd7d8919504c7b8dba5203925156a0b5b2e56 [file] [log] [blame]
Varun Wadekarb316e242015-05-19 16:48:04 +05301#
Alexei Fedorovcaa18022020-07-14 10:47:25 +01002# Copyright (c) 2015-2020, 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
Varun Wadekar0c9105e2019-06-13 15:32:11 -070015TEGRA_COMMON := plat/nvidia/tegra/common
16TEGRA_DRIVERS := plat/nvidia/tegra/drivers
17TEGRA_LIBS := plat/nvidia/tegra/lib
Varun Wadekarb316e242015-05-19 16:48:04 +053018
Varun Wadekar5b7c50d2020-06-11 21:53:09 -070019# Include GICv3 driver files
20include drivers/arm/gic/v3/gicv3.mk
21TEGRA_GICv3_SOURCES := $(GICV3_SOURCES) \
22 plat/common/plat_gicv3.c \
Varun Wadekar0c9105e2019-06-13 15:32:11 -070023 ${TEGRA_COMMON}/tegra_gicv3.c
Varun Wadekar5b7c50d2020-06-11 21:53:09 -070024
Alexei Fedorovcaa18022020-07-14 10:47:25 +010025# Include GICv2 driver files
26include drivers/arm/gic/v2/gicv2.mk
27
28TEGRA_GICv2_SOURCES := ${GICV2_SOURCES} \
Varun Wadekar1fd70492018-10-19 11:44:31 -070029 plat/common/plat_gicv2.c \
Varun Wadekar0c9105e2019-06-13 15:32:11 -070030 ${TEGRA_COMMON}/tegra_gicv2.c
31
32TEGRA_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 Wadekar1fd70492018-10-19 11:44:31 -070038
Ambroise Vincent09a22e72019-05-29 14:04:16 +010039BL31_SOURCES += drivers/delay_timer/delay_timer.c \
Varun Wadekar396530b2019-03-01 10:18:35 -080040 drivers/io/io_storage.c \
Ambroise Vincent09a22e72019-05-29 14:04:16 +010041 plat/common/aarch64/crash_console_helpers.S \
Varun Wadekar9f4a7d32018-10-19 11:42:28 -070042 ${TEGRA_GICv2_SOURCES} \
Varun Wadekar0c9105e2019-06-13 15:32:11 -070043 ${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 Wadekar087190f2020-05-16 22:10:09 -070054
55ifneq ($(ENABLE_STACK_PROTECTOR), 0)
Varun Wadekar0c9105e2019-06-13 15:32:11 -070056BL31_SOURCES += ${TEGRA_COMMON}/tegra_stack_protector.c
Varun Wadekar087190f2020-05-16 22:10:09 -070057endif