2014-07-17 16:06:39 +01:00
|
|
|
#
|
2017-02-27 12:21:43 +00:00
|
|
|
# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
|
2014-07-17 16:06:39 +01:00
|
|
|
#
|
2017-05-03 09:38:09 +01:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2014-07-17 16:06:39 +01:00
|
|
|
#
|
|
|
|
|
2015-11-03 14:18:34 +00:00
|
|
|
JUNO_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
|
|
|
|
drivers/arm/gic/v2/gicv2_main.c \
|
|
|
|
drivers/arm/gic/v2/gicv2_helpers.c \
|
|
|
|
plat/common/plat_gicv2.c \
|
|
|
|
plat/arm/common/arm_gicv2.c
|
|
|
|
|
2016-02-15 11:54:14 +00:00
|
|
|
JUNO_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c \
|
|
|
|
plat/arm/common/arm_cci.c
|
|
|
|
|
2016-02-26 14:23:19 +00:00
|
|
|
JUNO_SECURITY_SOURCES := drivers/arm/tzc/tzc400.c \
|
2016-02-10 14:50:53 +00:00
|
|
|
plat/arm/board/juno/juno_security.c \
|
2017-02-27 12:21:43 +00:00
|
|
|
plat/arm/board/juno/juno_trng.c \
|
2016-02-10 14:50:53 +00:00
|
|
|
plat/arm/common/arm_tzc400.c
|
|
|
|
|
2017-02-28 14:43:15 +00:00
|
|
|
ifneq (${ENABLE_STACK_PROTECTOR}, 0)
|
|
|
|
JUNO_SECURITY_SOURCES += plat/arm/board/juno/juno_stack_protector.c
|
|
|
|
endif
|
2016-02-15 11:54:14 +00:00
|
|
|
|
2015-04-27 19:34:53 +01:00
|
|
|
PLAT_INCLUDES := -Iplat/arm/board/juno/include
|
2014-09-05 17:29:38 +01:00
|
|
|
|
2016-11-14 12:01:04 +00:00
|
|
|
PLAT_BL_COMMON_SOURCES := plat/arm/board/juno/${ARCH}/juno_helpers.S
|
2014-09-05 17:29:38 +01:00
|
|
|
|
2016-11-14 12:01:04 +00:00
|
|
|
# Flag to enable support for AArch32 state on JUNO
|
|
|
|
JUNO_AARCH32_EL3_RUNTIME := 0
|
|
|
|
$(eval $(call assert_boolean,JUNO_AARCH32_EL3_RUNTIME))
|
|
|
|
$(eval $(call add_define,JUNO_AARCH32_EL3_RUNTIME))
|
|
|
|
|
2017-11-14 14:10:10 +00:00
|
|
|
ifeq (${JUNO_AARCH32_EL3_RUNTIME}, 1)
|
|
|
|
# Include BL32 in FIP
|
|
|
|
NEED_BL32 := yes
|
|
|
|
# BL31 is not required
|
|
|
|
override BL31_SOURCES =
|
|
|
|
|
|
|
|
# The BL32 needs to be built separately invoking the AARCH32 compiler and
|
|
|
|
# be specifed via `BL32` build option.
|
|
|
|
ifneq (${ARCH}, aarch32)
|
|
|
|
override BL32_SOURCES =
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-11-14 12:01:04 +00:00
|
|
|
ifeq (${ARCH},aarch64)
|
2015-03-19 19:22:44 +00:00
|
|
|
BL1_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
2015-10-30 16:25:12 +00:00
|
|
|
lib/cpus/aarch64/cortex_a57.S \
|
2015-10-06 14:01:35 +01:00
|
|
|
lib/cpus/aarch64/cortex_a72.S \
|
2015-10-11 14:14:55 +01:00
|
|
|
plat/arm/board/juno/juno_bl1_setup.c \
|
2017-02-28 14:43:15 +00:00
|
|
|
${JUNO_INTERCONNECT_SOURCES} \
|
|
|
|
${JUNO_SECURITY_SOURCES}
|
2014-09-05 17:29:38 +01:00
|
|
|
|
2018-03-07 11:32:04 +00:00
|
|
|
BL2_SOURCES += plat/arm/board/juno/juno_bl2_setup.c \
|
2016-02-10 14:50:53 +00:00
|
|
|
${JUNO_SECURITY_SOURCES}
|
2014-09-05 17:29:38 +01:00
|
|
|
|
2016-02-10 14:50:53 +00:00
|
|
|
BL2U_SOURCES += ${JUNO_SECURITY_SOURCES}
|
2015-10-14 15:28:11 +01:00
|
|
|
|
2015-03-19 19:22:44 +00:00
|
|
|
BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
2015-10-12 17:32:29 +01:00
|
|
|
lib/cpus/aarch64/cortex_a57.S \
|
2015-10-30 16:25:12 +00:00
|
|
|
lib/cpus/aarch64/cortex_a72.S \
|
2016-02-01 14:04:34 +00:00
|
|
|
plat/arm/board/juno/juno_topology.c \
|
2016-02-10 14:50:53 +00:00
|
|
|
${JUNO_GIC_SOURCES} \
|
2016-02-15 11:54:14 +00:00
|
|
|
${JUNO_INTERCONNECT_SOURCES} \
|
2016-02-10 14:50:53 +00:00
|
|
|
${JUNO_SECURITY_SOURCES}
|
2016-11-14 12:01:04 +00:00
|
|
|
endif
|
2014-09-05 17:29:38 +01:00
|
|
|
|
2017-08-04 15:03:51 +01:00
|
|
|
# Errata workarounds for Cortex-A53:
|
|
|
|
ERRATA_A53_826319 := 1
|
2017-06-19 15:38:02 +01:00
|
|
|
ERRATA_A53_835769 := 1
|
2017-08-04 15:03:51 +01:00
|
|
|
ERRATA_A53_836870 := 1
|
2017-06-19 15:38:02 +01:00
|
|
|
ERRATA_A53_843419 := 1
|
2016-10-06 16:54:53 +01:00
|
|
|
ERRATA_A53_855873 := 1
|
2017-08-04 15:03:51 +01:00
|
|
|
|
|
|
|
# Errata workarounds for Cortex-A57:
|
2016-01-20 15:57:35 +00:00
|
|
|
ERRATA_A57_806969 := 0
|
2017-02-24 11:39:22 +00:00
|
|
|
ERRATA_A57_813419 := 1
|
2016-01-20 15:57:35 +00:00
|
|
|
ERRATA_A57_813420 := 1
|
2017-02-28 17:56:15 +00:00
|
|
|
ERRATA_A57_826974 := 1
|
|
|
|
ERRATA_A57_826977 := 1
|
|
|
|
ERRATA_A57_828024 := 1
|
|
|
|
ERRATA_A57_829520 := 1
|
|
|
|
ERRATA_A57_833471 := 1
|
2017-08-04 15:03:51 +01:00
|
|
|
ERRATA_A57_859972 := 0
|
2017-02-28 17:56:15 +00:00
|
|
|
|
2017-08-04 15:03:51 +01:00
|
|
|
# Errata workarounds for Cortex-A72:
|
|
|
|
ERRATA_A72_859971 := 0
|
2014-09-22 14:13:34 +01:00
|
|
|
|
|
|
|
# Enable option to skip L1 data cache flush during the Cortex-A57 cluster
|
|
|
|
# power down sequence
|
|
|
|
SKIP_A57_L1_FLUSH_PWR_DWN := 1
|
2015-03-19 19:22:44 +00:00
|
|
|
|
2015-07-01 16:16:20 +01:00
|
|
|
# Disable the PSCI platform compatibility layer
|
2016-01-20 15:57:35 +00:00
|
|
|
ENABLE_PLAT_COMPAT := 0
|
|
|
|
|
|
|
|
# Enable memory map related constants optimisation
|
2016-07-25 12:04:31 +01:00
|
|
|
ARM_BOARD_OPTIMISE_MEM := 1
|
2015-07-01 16:16:20 +01:00
|
|
|
|
2017-10-31 23:19:21 +00:00
|
|
|
# Do not enable SVE
|
|
|
|
ENABLE_SVE_FOR_NS := 0
|
|
|
|
|
2018-02-28 10:47:23 +00:00
|
|
|
# Select SCMI/SDS drivers instead of SCPI/BOM driver for communicating with the
|
|
|
|
# SCP during power management operations and for SCP RAM Firmware transfer.
|
|
|
|
CSS_USE_SCMI_SDS_DRIVER := 1
|
|
|
|
|
2015-03-19 19:22:44 +00:00
|
|
|
include plat/arm/board/common/board_css.mk
|
|
|
|
include plat/arm/common/arm_common.mk
|
|
|
|
include plat/arm/soc/common/soc_css.mk
|
|
|
|
include plat/arm/css/common/css_common.mk
|
2015-05-19 11:54:12 +01:00
|
|
|
|