blob: b972d26abadcf69a26ac5d590699a70b9a25b946 [file] [log] [blame]
Sandrine Bailleux798140d2014-07-17 16:06:39 +01001#
dp-arm8f59e152017-02-27 12:21:43 +00002# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Sandrine Bailleux798140d2014-07-17 16:06:39 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Sandrine Bailleux798140d2014-07-17 16:06:39 +01005#
6
Achin Gupta1fa7eb62015-11-03 14:18:34 +00007JUNO_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
Vikram Kanigirifbb13012016-02-15 11:54:14 +000013JUNO_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c \
14 plat/arm/common/arm_cci.c
15
Soby Mathew9c708b52016-02-26 14:23:19 +000016JUNO_SECURITY_SOURCES := drivers/arm/tzc/tzc400.c \
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000017 plat/arm/board/juno/juno_security.c \
dp-arm8f59e152017-02-27 12:21:43 +000018 plat/arm/board/juno/juno_trng.c \
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000019 plat/arm/common/arm_tzc400.c
20
dp-armb3263b32017-02-28 14:43:15 +000021ifneq (${ENABLE_STACK_PROTECTOR}, 0)
22JUNO_SECURITY_SOURCES += plat/arm/board/juno/juno_stack_protector.c
23endif
Vikram Kanigirifbb13012016-02-15 11:54:14 +000024
Dan Handley8e930fe2015-04-27 19:34:53 +010025PLAT_INCLUDES := -Iplat/arm/board/juno/include
Juan Castillo921b8772014-09-05 17:29:38 +010026
Yatharth Kocharede39cb2016-11-14 12:01:04 +000027PLAT_BL_COMMON_SOURCES := plat/arm/board/juno/${ARCH}/juno_helpers.S
Juan Castillo921b8772014-09-05 17:29:38 +010028
Yatharth Kocharede39cb2016-11-14 12:01:04 +000029# 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 (${ARCH},aarch64)
Dan Handley7bef8002015-03-19 19:22:44 +000035BL1_SOURCES += lib/cpus/aarch64/cortex_a53.S \
Brendan Jackmana443d222015-10-30 16:25:12 +000036 lib/cpus/aarch64/cortex_a57.S \
Juan Castillob6132f12015-10-06 14:01:35 +010037 lib/cpus/aarch64/cortex_a72.S \
Yatharth Kochar736a3bf2015-10-11 14:14:55 +010038 plat/arm/board/juno/juno_bl1_setup.c \
Vikram Kanigirifbb13012016-02-15 11:54:14 +000039 plat/arm/board/juno/juno_err.c \
dp-armb3263b32017-02-28 14:43:15 +000040 ${JUNO_INTERCONNECT_SOURCES} \
41 ${JUNO_SECURITY_SOURCES}
Juan Castillo921b8772014-09-05 17:29:38 +010042
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000043BL2_SOURCES += plat/arm/board/juno/juno_err.c \
Yatharth Kocharede39cb2016-11-14 12:01:04 +000044 plat/arm/board/juno/juno_bl2_setup.c \
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000045 ${JUNO_SECURITY_SOURCES}
Juan Castillo921b8772014-09-05 17:29:38 +010046
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000047BL2U_SOURCES += ${JUNO_SECURITY_SOURCES}
Yatharth Kochar3a11eda2015-10-14 15:28:11 +010048
Dan Handley7bef8002015-03-19 19:22:44 +000049BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
Soby Mathew61e8d0b2015-10-12 17:32:29 +010050 lib/cpus/aarch64/cortex_a57.S \
Brendan Jackmana443d222015-10-30 16:25:12 +000051 lib/cpus/aarch64/cortex_a72.S \
Soby Mathew47e43f22016-02-01 14:04:34 +000052 plat/arm/board/juno/juno_topology.c \
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000053 ${JUNO_GIC_SOURCES} \
Vikram Kanigirifbb13012016-02-15 11:54:14 +000054 ${JUNO_INTERCONNECT_SOURCES} \
Vikram Kanigiri70752bb2016-02-10 14:50:53 +000055 ${JUNO_SECURITY_SOURCES}
Yatharth Kocharede39cb2016-11-14 12:01:04 +000056endif
Juan Castillo921b8772014-09-05 17:29:38 +010057
Douglas Raillard71d4fe22017-02-28 17:56:15 +000058# Enable workarounds for selected Cortex-A53 and A57 errata.
Douglas Raillardd56fb042017-06-19 15:38:02 +010059ERRATA_A53_835769 := 1
60ERRATA_A53_843419 := 1
Andre Przywara00eefd92016-10-06 16:54:53 +010061ERRATA_A53_855873 := 1
Vikram Kanigirieade34c2016-01-20 15:57:35 +000062ERRATA_A57_806969 := 0
Antonio Nino Diaz3f13c352017-02-24 11:39:22 +000063ERRATA_A57_813419 := 1
Vikram Kanigirieade34c2016-01-20 15:57:35 +000064ERRATA_A57_813420 := 1
Douglas Raillard71d4fe22017-02-28 17:56:15 +000065ERRATA_A57_826974 := 1
66ERRATA_A57_826977 := 1
67ERRATA_A57_828024 := 1
68ERRATA_A57_829520 := 1
69ERRATA_A57_833471 := 1
70
71# Enable workarounds for selected Cortex-A53 errata.
72ERRATA_A53_826319 := 1
73ERRATA_A53_836870 := 1
Soby Mathew937488b2014-09-22 14:13:34 +010074
75# Enable option to skip L1 data cache flush during the Cortex-A57 cluster
76# power down sequence
77SKIP_A57_L1_FLUSH_PWR_DWN := 1
Dan Handley7bef8002015-03-19 19:22:44 +000078
Soby Mathewfec4eb72015-07-01 16:16:20 +010079# Disable the PSCI platform compatibility layer
Vikram Kanigirieade34c2016-01-20 15:57:35 +000080ENABLE_PLAT_COMPAT := 0
81
82# Enable memory map related constants optimisation
Antonio Nino Diaz30ce3ad2016-07-25 12:04:31 +010083ARM_BOARD_OPTIMISE_MEM := 1
Soby Mathewfec4eb72015-07-01 16:16:20 +010084
Dan Handley7bef8002015-03-19 19:22:44 +000085include plat/arm/board/common/board_css.mk
86include plat/arm/common/arm_common.mk
87include plat/arm/soc/common/soc_css.mk
88include plat/arm/css/common/css_common.mk
Juan Castilloa08a5e72015-05-19 11:54:12 +010089
90ifeq (${KEY_ALG},ecdsa)
91 $(error "ECDSA key algorithm is not fully supported on Juno.")
92endif