xref: /rk3399_ARM-atf/plat/nvidia/tegra/soc/t194/platform_t194.mk (revision 4c700c1563aff7b51df95f17e952e050b9b4e37f)
1#
2# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include common/fdt_wrappers.mk
8
9# platform configs
10ENABLE_CONSOLE_SPE			:= 1
11$(eval $(call add_define,ENABLE_CONSOLE_SPE))
12
13ENABLE_STRICT_CHECKING_MODE		:= 1
14$(eval $(call add_define,ENABLE_STRICT_CHECKING_MODE))
15
16USE_GPC_DMA				:= 1
17$(eval $(call add_define,USE_GPC_DMA))
18
19RESET_TO_BL31				:= 1
20
21PROGRAMMABLE_RESET_ADDRESS		:= 1
22
23COLD_BOOT_SINGLE_CPU			:= 1
24
25# platform settings
26TZDRAM_BASE				:= 0x40000000
27$(eval $(call add_define,TZDRAM_BASE))
28
29MAX_XLAT_TABLES				:= 25
30$(eval $(call add_define,MAX_XLAT_TABLES))
31
32MAX_MMAP_REGIONS			:= 30
33$(eval $(call add_define,MAX_MMAP_REGIONS))
34
35# enable RAS handling
36HANDLE_EA_EL3_FIRST_NS			:= 1
37ENABLE_FEAT_RAS				:= 1
38RAS_FFH_SUPPORT				:= 1
39
40# platform files
41PLAT_INCLUDES		+=	-Iplat/nvidia/tegra/include/t194 \
42				-I${SOC_DIR}/drivers/include
43
44BL31_SOURCES		+=	${TEGRA_GICv2_SOURCES}			\
45				drivers/ti/uart/aarch64/16550_console.S \
46				lib/cpus/aarch64/denver.S		\
47				${TEGRA_DRIVERS}/bpmp_ipc/intf.c	\
48				${TEGRA_DRIVERS}/bpmp_ipc/ivc.c		\
49				${TEGRA_DRIVERS}/memctrl/memctrl_v2.c	\
50				${TEGRA_DRIVERS}/smmu/smmu.c		\
51				${SOC_DIR}/drivers/mce/mce.c		\
52				${SOC_DIR}/drivers/mce/nvg.c		\
53				${SOC_DIR}/drivers/mce/aarch64/nvg_helpers.S \
54				${SOC_DIR}/drivers/se/se.c		\
55				${SOC_DIR}/plat_memctrl.c		\
56				${SOC_DIR}/plat_psci_handlers.c		\
57				${SOC_DIR}/plat_setup.c			\
58				${SOC_DIR}/plat_secondary.c		\
59				${SOC_DIR}/plat_sip_calls.c		\
60				${SOC_DIR}/plat_smmu.c			\
61				${SOC_DIR}/plat_trampoline.S
62
63ifeq (${USE_GPC_DMA}, 1)
64BL31_SOURCES		+=	${TEGRA_DRIVERS}/gpcdma/gpcdma.c
65endif
66
67ifeq (${ENABLE_CONSOLE_SPE},1)
68BL31_SOURCES		+=	${TEGRA_DRIVERS}/spe/shared_console.S
69endif
70
71# RAS sources
72ifeq (${RAS_FFH_SUPPORT},1)
73BL31_SOURCES		+=	lib/extensions/ras/std_err_record.c		\
74				lib/extensions/ras/ras_common.c			\
75				${SOC_DIR}/plat_ras.c
76endif
77
78# SPM dispatcher
79ifeq (${SPD},spmd)
80include lib/libfdt/libfdt.mk
81# sources to support spmd
82BL31_SOURCES		+=	plat/common/plat_spmd_manifest.c	\
83				${LIBFDT_SRCS}
84
85BL31_SOURCES		+=	${FDT_WRAPPERS_SOURCES}
86endif
87