2018-04-10 01:48:58 +01:00
|
|
|
#
|
2021-09-28 15:52:14 +01:00
|
|
|
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
|
2018-04-10 01:48:58 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
|
2021-09-28 15:52:14 +01:00
|
|
|
include common/fdt_wrappers.mk
|
|
|
|
|
2018-04-10 01:48:58 +01:00
|
|
|
# platform configs
|
2017-12-01 17:24:12 +00:00
|
|
|
ENABLE_CONSOLE_SPE := 1
|
2019-08-21 22:01:31 +01:00
|
|
|
$(eval $(call add_define,ENABLE_CONSOLE_SPE))
|
|
|
|
|
2018-04-03 21:10:48 +01:00
|
|
|
ENABLE_STRICT_CHECKING_MODE := 1
|
2017-12-12 22:39:15 +00:00
|
|
|
$(eval $(call add_define,ENABLE_STRICT_CHECKING_MODE))
|
|
|
|
|
2018-04-03 21:10:48 +01:00
|
|
|
USE_GPC_DMA := 1
|
|
|
|
$(eval $(call add_define,USE_GPC_DMA))
|
|
|
|
|
2018-04-10 01:48:58 +01:00
|
|
|
RESET_TO_BL31 := 1
|
|
|
|
|
|
|
|
PROGRAMMABLE_RESET_ADDRESS := 1
|
|
|
|
|
|
|
|
COLD_BOOT_SINGLE_CPU := 1
|
|
|
|
|
|
|
|
# platform settings
|
|
|
|
TZDRAM_BASE := 0x40000000
|
|
|
|
$(eval $(call add_define,TZDRAM_BASE))
|
|
|
|
|
2017-08-01 23:53:04 +01:00
|
|
|
MAX_XLAT_TABLES := 25
|
2018-04-10 01:48:58 +01:00
|
|
|
$(eval $(call add_define,MAX_XLAT_TABLES))
|
|
|
|
|
2017-09-29 09:32:34 +01:00
|
|
|
MAX_MMAP_REGIONS := 30
|
2018-04-10 01:48:58 +01:00
|
|
|
$(eval $(call add_define,MAX_MMAP_REGIONS))
|
|
|
|
|
2019-03-18 22:14:49 +00:00
|
|
|
# enable RAS handling
|
|
|
|
HANDLE_EA_EL3_FIRST := 1
|
|
|
|
RAS_EXTENSION := 1
|
|
|
|
|
2018-04-10 01:48:58 +01:00
|
|
|
# platform files
|
2019-01-18 00:36:23 +00:00
|
|
|
PLAT_INCLUDES += -Iplat/nvidia/tegra/include/t194 \
|
|
|
|
-I${SOC_DIR}/drivers/include
|
2018-04-10 01:48:58 +01:00
|
|
|
|
2020-02-26 22:52:01 +00:00
|
|
|
BL31_SOURCES += ${TEGRA_GICv2_SOURCES} \
|
|
|
|
drivers/ti/uart/aarch64/16550_console.S \
|
2017-11-15 23:52:01 +00:00
|
|
|
lib/cpus/aarch64/denver.S \
|
2019-06-13 23:32:11 +01:00
|
|
|
${TEGRA_DRIVERS}/bpmp_ipc/intf.c \
|
|
|
|
${TEGRA_DRIVERS}/bpmp_ipc/ivc.c \
|
|
|
|
${TEGRA_DRIVERS}/memctrl/memctrl_v2.c \
|
|
|
|
${TEGRA_DRIVERS}/smmu/smmu.c \
|
2018-04-10 01:48:58 +01:00
|
|
|
${SOC_DIR}/drivers/mce/mce.c \
|
2017-01-05 09:04:40 +00:00
|
|
|
${SOC_DIR}/drivers/mce/nvg.c \
|
|
|
|
${SOC_DIR}/drivers/mce/aarch64/nvg_helpers.S \
|
2017-06-23 09:18:58 +01:00
|
|
|
${SOC_DIR}/drivers/se/se.c \
|
2017-05-31 19:41:00 +01:00
|
|
|
${SOC_DIR}/plat_memctrl.c \
|
2018-04-10 01:48:58 +01:00
|
|
|
${SOC_DIR}/plat_psci_handlers.c \
|
|
|
|
${SOC_DIR}/plat_setup.c \
|
|
|
|
${SOC_DIR}/plat_secondary.c \
|
2017-05-31 19:41:00 +01:00
|
|
|
${SOC_DIR}/plat_sip_calls.c \
|
2017-11-10 19:04:42 +00:00
|
|
|
${SOC_DIR}/plat_smmu.c \
|
|
|
|
${SOC_DIR}/plat_trampoline.S
|
2019-08-21 22:01:31 +01:00
|
|
|
|
2019-06-13 23:32:11 +01:00
|
|
|
ifeq (${USE_GPC_DMA}, 1)
|
|
|
|
BL31_SOURCES += ${TEGRA_DRIVERS}/gpcdma/gpcdma.c
|
|
|
|
endif
|
|
|
|
|
2019-08-21 22:01:31 +01:00
|
|
|
ifeq (${ENABLE_CONSOLE_SPE},1)
|
2019-06-13 23:32:11 +01:00
|
|
|
BL31_SOURCES += ${TEGRA_DRIVERS}/spe/shared_console.S
|
2019-08-21 22:01:31 +01:00
|
|
|
endif
|
2019-03-18 22:14:49 +00:00
|
|
|
|
|
|
|
# RAS sources
|
|
|
|
ifeq (${RAS_EXTENSION},1)
|
|
|
|
BL31_SOURCES += lib/extensions/ras/std_err_record.c \
|
|
|
|
lib/extensions/ras/ras_common.c \
|
|
|
|
${SOC_DIR}/plat_ras.c
|
|
|
|
endif
|
2020-07-20 05:30:54 +01:00
|
|
|
|
|
|
|
# SPM dispatcher
|
|
|
|
ifeq (${SPD},spmd)
|
|
|
|
include lib/libfdt/libfdt.mk
|
|
|
|
# sources to support spmd
|
|
|
|
BL31_SOURCES += plat/common/plat_spmd_manifest.c \
|
|
|
|
${LIBFDT_SRCS}
|
2021-09-28 15:52:14 +01:00
|
|
|
|
|
|
|
BL31_SOURCES += ${FDT_WRAPPERS_SOURCES}
|
2020-07-20 05:30:54 +01:00
|
|
|
endif
|