| # Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved. |
| # Copyright (c) 2021-2022, Xilinx, Inc. All rights reserved. |
| # Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved. |
| # |
| # SPDX-License-Identifier: BSD-3-Clause |
| |
| PLAT_PATH := plat/xilinx/versal_net |
| |
| override PROGRAMMABLE_RESET_ADDRESS := 1 |
| PSCI_EXTENDED_STATE_ID := 1 |
| SEPARATE_CODE_AND_RODATA := 1 |
| override RESET_TO_BL31 := 1 |
| PL011_GENERIC_UART := 1 |
| GIC_ENABLE_V4_EXTN := 0 |
| GICV3_SUPPORT_GIC600 := 1 |
| |
| override CTX_INCLUDE_AARCH32_REGS := 0 |
| |
| ifdef VERSAL_NET_ATF_MEM_BASE |
| $(eval $(call add_define,VERSAL_NET_ATF_MEM_BASE)) |
| |
| ifndef VERSAL_NET_ATF_MEM_SIZE |
| $(error "VERSAL_NET_ATF_BASE defined without VERSAL_NET_ATF_SIZE") |
| endif |
| $(eval $(call add_define,VERSAL_NET_ATF_MEM_SIZE)) |
| |
| ifdef VERSAL_NET_ATF_MEM_PROGBITS_SIZE |
| $(eval $(call add_define,VERSAL_NET_ATF_MEM_PROGBITS_SIZE)) |
| endif |
| endif |
| |
| ifdef VERSAL_NET_BL32_MEM_BASE |
| $(eval $(call add_define,VERSAL_NET_BL32_MEM_BASE)) |
| |
| ifndef VERSAL_NET_BL32_MEM_SIZE |
| $(error "VERSAL_NET_BL32_BASE defined without VERSAL_NET_BL32_SIZE") |
| endif |
| $(eval $(call add_define,VERSAL_NET_BL32_MEM_SIZE)) |
| endif |
| |
| USE_COHERENT_MEM := 0 |
| HW_ASSISTED_COHERENCY := 1 |
| |
| VERSAL_NET_CONSOLE ?= pl011 |
| $(eval $(call add_define_val,VERSAL_NET_CONSOLE,VERSAL_NET_CONSOLE_ID_${VERSAL_NET_CONSOLE})) |
| |
| PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ |
| -Iplat/xilinx/common/include/ \ |
| -I${PLAT_PATH}/include/ \ |
| -Iplat/xilinx/versal/pm_service/ |
| |
| # Include GICv3 driver files |
| include drivers/arm/gic/v3/gicv3.mk |
| include lib/xlat_tables_v2/xlat_tables.mk |
| include lib/libfdt/libfdt.mk |
| |
| PLAT_BL_COMMON_SOURCES := \ |
| drivers/delay_timer/delay_timer.c \ |
| drivers/delay_timer/generic_delay_timer.c \ |
| ${GICV3_SOURCES} \ |
| drivers/arm/pl011/aarch64/pl011_console.S \ |
| plat/arm/common/arm_common.c \ |
| plat/common/plat_gicv3.c \ |
| ${PLAT_PATH}/aarch64/versal_net_helpers.S \ |
| ${PLAT_PATH}/aarch64/versal_net_common.c |
| |
| BL31_SOURCES += drivers/arm/cci/cci.c \ |
| lib/cpus/aarch64/cortex_a78_ae.S \ |
| lib/cpus/aarch64/cortex_a78.S \ |
| plat/common/plat_psci_common.c \ |
| ${PLAT_PATH}/plat_psci.c \ |
| plat/xilinx/common/plat_startup.c \ |
| ${PLAT_PATH}/bl31_versal_net_setup.c \ |
| ${PLAT_PATH}/plat_topology.c \ |
| common/fdt_fixup.c \ |
| ${LIBFDT_SRCS} \ |
| ${PLAT_PATH}/sip_svc_setup.c \ |
| ${PLAT_PATH}/versal_net_gicv3.c \ |
| ${XLAT_TABLES_LIB_SRCS} |