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