1# 2# Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5 6override ERRATA_A53_855873 := 1 7override PROGRAMMABLE_RESET_ADDRESS := 1 8PSCI_EXTENDED_STATE_ID := 1 9A53_DISABLE_NON_TEMPORAL_HINT := 0 10SEPARATE_CODE_AND_RODATA := 1 11ZYNQMP_WDT_RESTART := 0 12ZYNQMP_IPI_CRC_CHECK := 0 13override RESET_TO_BL31 := 1 14override GICV2_G0_FOR_EL3 := 1 15override WARMBOOT_ENABLE_DCACHE_EARLY := 1 16 17# Do not enable SVE 18ENABLE_SVE_FOR_NS := 0 19 20WORKAROUND_CVE_2017_5715 := 0 21 22ifdef ZYNQMP_ATF_MEM_BASE 23 $(eval $(call add_define,ZYNQMP_ATF_MEM_BASE)) 24 25 ifndef ZYNQMP_ATF_MEM_SIZE 26 $(error "ZYNQMP_ATF_BASE defined without ZYNQMP_ATF_SIZE") 27 endif 28 $(eval $(call add_define,ZYNQMP_ATF_MEM_SIZE)) 29 30 ifdef ZYNQMP_ATF_MEM_PROGBITS_SIZE 31 $(eval $(call add_define,ZYNQMP_ATF_MEM_PROGBITS_SIZE)) 32 endif 33endif 34 35ifdef ZYNQMP_BL32_MEM_BASE 36 $(eval $(call add_define,ZYNQMP_BL32_MEM_BASE)) 37 38 ifndef ZYNQMP_BL32_MEM_SIZE 39 $(error "ZYNQMP_BL32_BASE defined without ZYNQMP_BL32_SIZE") 40 endif 41 $(eval $(call add_define,ZYNQMP_BL32_MEM_SIZE)) 42endif 43 44ZYNQMP_CONSOLE ?= cadence 45$(eval $(call add_define_val,ZYNQMP_CONSOLE,ZYNQMP_CONSOLE_ID_${ZYNQMP_CONSOLE})) 46 47ifdef ZYNQMP_WDT_RESTART 48$(eval $(call add_define,ZYNQMP_WDT_RESTART)) 49endif 50 51ifdef ZYNQMP_IPI_CRC_CHECK 52 $(eval $(call add_define,ZYNQMP_IPI_CRC_CHECK)) 53endif 54 55PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ 56 -Iinclude/plat/arm/common/aarch64/ \ 57 -Iplat/xilinx/common/include/ \ 58 -Iplat/xilinx/common/ipi_mailbox_service/ \ 59 -Iplat/xilinx/zynqmp/include/ \ 60 -Iplat/xilinx/zynqmp/pm_service/ \ 61 62# Include GICv2 driver files 63include drivers/arm/gic/v2/gicv2.mk 64 65PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \ 66 lib/xlat_tables/aarch64/xlat_tables.c \ 67 drivers/delay_timer/delay_timer.c \ 68 drivers/delay_timer/generic_delay_timer.c \ 69 ${GICV2_SOURCES} \ 70 drivers/cadence/uart/aarch64/cdns_console.S \ 71 plat/arm/common/arm_cci.c \ 72 plat/arm/common/arm_common.c \ 73 plat/arm/common/arm_gicv2.c \ 74 plat/common/plat_gicv2.c \ 75 plat/xilinx/common/ipi.c \ 76 plat/xilinx/zynqmp/zynqmp_ipi.c \ 77 plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S \ 78 plat/xilinx/zynqmp/aarch64/zynqmp_common.c 79 80BL31_SOURCES += drivers/arm/cci/cci.c \ 81 lib/cpus/aarch64/aem_generic.S \ 82 lib/cpus/aarch64/cortex_a53.S \ 83 plat/common/plat_psci_common.c \ 84 plat/xilinx/common/ipi_mailbox_service/ipi_mailbox_svc.c \ 85 plat/xilinx/common/pm_service/pm_ipi.c \ 86 plat/xilinx/common/plat_startup.c \ 87 plat/xilinx/zynqmp/bl31_zynqmp_setup.c \ 88 plat/xilinx/zynqmp/plat_psci.c \ 89 plat/xilinx/zynqmp/plat_zynqmp.c \ 90 plat/xilinx/zynqmp/plat_topology.c \ 91 plat/xilinx/zynqmp/sip_svc_setup.c \ 92 plat/xilinx/zynqmp/pm_service/pm_svc_main.c \ 93 plat/xilinx/zynqmp/pm_service/pm_api_sys.c \ 94 plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.c \ 95 plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c \ 96 plat/xilinx/zynqmp/pm_service/pm_api_clock.c \ 97 plat/xilinx/zynqmp/pm_service/pm_client.c 98 99BL31_CPPFLAGS += -fno-jump-tables 100 101ifneq (${RESET_TO_BL31},1) 102 $(error "Using BL31 as the reset vector is only one option supported on ZynqMP. Please set RESET_TO_BL31 to 1.") 103endif 104