1# 2# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7JUNO_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ 8 drivers/arm/gic/v2/gicv2_main.c \ 9 drivers/arm/gic/v2/gicv2_helpers.c \ 10 plat/common/plat_gicv2.c \ 11 plat/arm/common/arm_gicv2.c 12 13JUNO_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c \ 14 plat/arm/common/arm_cci.c 15 16JUNO_SECURITY_SOURCES := drivers/arm/tzc/tzc400.c \ 17 plat/arm/board/juno/juno_security.c \ 18 plat/arm/board/juno/juno_trng.c \ 19 plat/arm/common/arm_tzc400.c 20 21ifneq (${ENABLE_STACK_PROTECTOR}, 0) 22JUNO_SECURITY_SOURCES += plat/arm/board/juno/juno_stack_protector.c 23endif 24 25PLAT_INCLUDES := -Iplat/arm/board/juno/include 26 27PLAT_BL_COMMON_SOURCES := plat/arm/board/juno/${ARCH}/juno_helpers.S 28 29# Flag to enable support for AArch32 state on JUNO 30JUNO_AARCH32_EL3_RUNTIME := 0 31$(eval $(call assert_boolean,JUNO_AARCH32_EL3_RUNTIME)) 32$(eval $(call add_define,JUNO_AARCH32_EL3_RUNTIME)) 33 34ifeq (${JUNO_AARCH32_EL3_RUNTIME}, 1) 35# Include BL32 in FIP 36NEED_BL32 := yes 37# BL31 is not required 38override BL31_SOURCES = 39 40# The BL32 needs to be built separately invoking the AARCH32 compiler and 41# be specifed via `BL32` build option. 42 ifneq (${ARCH}, aarch32) 43 override BL32_SOURCES = 44 endif 45endif 46 47ifeq (${ARCH},aarch64) 48BL1_SOURCES += lib/cpus/aarch64/cortex_a53.S \ 49 lib/cpus/aarch64/cortex_a57.S \ 50 lib/cpus/aarch64/cortex_a72.S \ 51 plat/arm/board/juno/juno_bl1_setup.c \ 52 ${JUNO_INTERCONNECT_SOURCES} \ 53 ${JUNO_SECURITY_SOURCES} 54 55BL2_SOURCES += plat/arm/board/juno/juno_bl2_setup.c \ 56 ${JUNO_SECURITY_SOURCES} 57 58BL2U_SOURCES += ${JUNO_SECURITY_SOURCES} 59 60BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \ 61 lib/cpus/aarch64/cortex_a57.S \ 62 lib/cpus/aarch64/cortex_a72.S \ 63 plat/arm/board/juno/juno_topology.c \ 64 ${JUNO_GIC_SOURCES} \ 65 ${JUNO_INTERCONNECT_SOURCES} \ 66 ${JUNO_SECURITY_SOURCES} 67endif 68 69# Errata workarounds for Cortex-A53: 70ERRATA_A53_826319 := 1 71ERRATA_A53_835769 := 1 72ERRATA_A53_836870 := 1 73ERRATA_A53_843419 := 1 74ERRATA_A53_855873 := 1 75 76# Errata workarounds for Cortex-A57: 77ERRATA_A57_806969 := 0 78ERRATA_A57_813419 := 1 79ERRATA_A57_813420 := 1 80ERRATA_A57_826974 := 1 81ERRATA_A57_826977 := 1 82ERRATA_A57_828024 := 1 83ERRATA_A57_829520 := 1 84ERRATA_A57_833471 := 1 85ERRATA_A57_859972 := 0 86 87# Errata workarounds for Cortex-A72: 88ERRATA_A72_859971 := 0 89 90# Enable option to skip L1 data cache flush during the Cortex-A57 cluster 91# power down sequence 92SKIP_A57_L1_FLUSH_PWR_DWN := 1 93 94# Disable the PSCI platform compatibility layer 95ENABLE_PLAT_COMPAT := 0 96 97# Enable memory map related constants optimisation 98ARM_BOARD_OPTIMISE_MEM := 1 99 100# Do not enable SVE 101ENABLE_SVE_FOR_NS := 0 102 103# Select SCMI/SDS drivers instead of SCPI/BOM driver for communicating with the 104# SCP during power management operations and for SCP RAM Firmware transfer. 105CSS_USE_SCMI_SDS_DRIVER := 1 106 107include plat/arm/board/common/board_css.mk 108include plat/arm/common/arm_common.mk 109include plat/arm/soc/common/soc_css.mk 110include plat/arm/css/common/css_common.mk 111 112