xref: /rk3399_ARM-atf/plat/arm/board/juno/platform.mk (revision dcda29f637891adf19a609f9b0b3adc6867de3d0)
185135283SDan Handley#
285135283SDan Handley# Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved.
385135283SDan Handley#
485135283SDan Handley# Redistribution and use in source and binary forms, with or without
585135283SDan Handley# modification, are permitted provided that the following conditions are met:
685135283SDan Handley#
785135283SDan Handley# Redistributions of source code must retain the above copyright notice, this
885135283SDan Handley# list of conditions and the following disclaimer.
985135283SDan Handley#
1085135283SDan Handley# Redistributions in binary form must reproduce the above copyright notice,
1185135283SDan Handley# this list of conditions and the following disclaimer in the documentation
1285135283SDan Handley# and/or other materials provided with the distribution.
1385135283SDan Handley#
1485135283SDan Handley# Neither the name of ARM nor the names of its contributors may be used
1585135283SDan Handley# to endorse or promote products derived from this software without specific
1685135283SDan Handley# prior written permission.
1785135283SDan Handley#
1885135283SDan Handley# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1985135283SDan Handley# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2085135283SDan Handley# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2185135283SDan Handley# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2285135283SDan Handley# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2385135283SDan Handley# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2485135283SDan Handley# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2585135283SDan Handley# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2685135283SDan Handley# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2785135283SDan Handley# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2885135283SDan Handley# POSSIBILITY OF SUCH DAMAGE.
2985135283SDan Handley#
3085135283SDan Handley
3127573c59SAchin GuptaJUNO_GIC_SOURCES	:=	drivers/arm/gic/common/gic_common.c	\
3227573c59SAchin Gupta				drivers/arm/gic/v2/gicv2_main.c		\
3327573c59SAchin Gupta				drivers/arm/gic/v2/gicv2_helpers.c	\
3427573c59SAchin Gupta				plat/common/plat_gicv2.c		\
3527573c59SAchin Gupta				plat/arm/common/arm_gicv2.c
3627573c59SAchin Gupta
3785135283SDan HandleyPLAT_INCLUDES		:=	-Iplat/arm/board/juno/include
3885135283SDan Handley
3985135283SDan HandleyPLAT_BL_COMMON_SOURCES	:=	plat/arm/board/juno/aarch64/juno_helpers.S
4085135283SDan Handley
4185135283SDan HandleyBL1_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
420f829ea9SBrendan Jackman				lib/cpus/aarch64/cortex_a57.S		\
437b4c1405SJuan Castillo				lib/cpus/aarch64/cortex_a72.S		\
44436223deSYatharth Kochar				plat/arm/board/juno/juno_bl1_setup.c	\
457b4c1405SJuan Castillo				plat/arm/board/juno/juno_err.c
4685135283SDan Handley
4785135283SDan HandleyBL2_SOURCES		+=	plat/arm/board/juno/juno_security.c	\
487b4c1405SJuan Castillo				plat/arm/board/juno/juno_err.c
4985135283SDan Handley
50*dcda29f6SYatharth KocharBL2U_SOURCES		+=	plat/arm/board/juno/juno_security.c
51*dcda29f6SYatharth Kochar
5285135283SDan HandleyBL31_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
53c1bb8a05SSoby Mathew				lib/cpus/aarch64/cortex_a57.S		\
540f829ea9SBrendan Jackman				lib/cpus/aarch64/cortex_a72.S		\
55c1bb8a05SSoby Mathew				plat/arm/board/juno/juno_pm.c		\
5627573c59SAchin Gupta				plat/arm/board/juno/juno_security.c	\
5727573c59SAchin Gupta				${JUNO_GIC_SOURCES}
5885135283SDan Handley
5985135283SDan Handley# Enable workarounds for selected Cortex-A57 erratas.
6085135283SDan HandleyERRATA_A57_806969	:=	0
6185135283SDan HandleyERRATA_A57_813420	:=	1
6285135283SDan Handley
6385135283SDan Handley# Enable option to skip L1 data cache flush during the Cortex-A57 cluster
6485135283SDan Handley# power down sequence
6585135283SDan HandleySKIP_A57_L1_FLUSH_PWR_DWN	:=	 1
6685135283SDan Handley
6738dce70fSSoby Mathew# Disable the PSCI platform compatibility layer
6838dce70fSSoby MathewENABLE_PLAT_COMPAT	:= 	0
6938dce70fSSoby Mathew
7085135283SDan Handleyinclude plat/arm/board/common/board_css.mk
7185135283SDan Handleyinclude plat/arm/common/arm_common.mk
7285135283SDan Handleyinclude plat/arm/soc/common/soc_css.mk
7385135283SDan Handleyinclude plat/arm/css/common/css_common.mk
741779ba6bSJuan Castillo
751779ba6bSJuan Castilloifeq (${KEY_ALG},ecdsa)
761779ba6bSJuan Castillo    $(error "ECDSA key algorithm is not fully supported on Juno.")
771779ba6bSJuan Castilloendif
78