xref: /rk3399_ARM-atf/plat/arm/board/juno/platform.mk (revision c1bb8a0500149c58f59f241676751b6b87edbae6)
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
3185135283SDan HandleyPLAT_INCLUDES		:=	-Iplat/arm/board/juno/include
3285135283SDan Handley
3385135283SDan HandleyPLAT_BL_COMMON_SOURCES	:=	plat/arm/board/juno/aarch64/juno_helpers.S
3485135283SDan Handley
3585135283SDan HandleyBL1_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
3685135283SDan Handley				lib/cpus/aarch64/cortex_a57.S
3785135283SDan Handley
3885135283SDan HandleyBL2_SOURCES		+=	plat/arm/board/juno/juno_security.c	\
3985135283SDan Handley
4085135283SDan HandleyBL31_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
41*c1bb8a05SSoby Mathew				lib/cpus/aarch64/cortex_a57.S		\
42*c1bb8a05SSoby Mathew				plat/arm/board/juno/juno_pm.c		\
43*c1bb8a05SSoby Mathew				plat/arm/board/juno/juno_security.c
4485135283SDan Handley
4585135283SDan Handley# Enable workarounds for selected Cortex-A57 erratas.
4685135283SDan HandleyERRATA_A57_806969	:=	0
4785135283SDan HandleyERRATA_A57_813420	:=	1
4885135283SDan Handley
4985135283SDan Handley# Enable option to skip L1 data cache flush during the Cortex-A57 cluster
5085135283SDan Handley# power down sequence
5185135283SDan HandleySKIP_A57_L1_FLUSH_PWR_DWN	:=	 1
5285135283SDan Handley
5338dce70fSSoby Mathew# Disable the PSCI platform compatibility layer
5438dce70fSSoby MathewENABLE_PLAT_COMPAT	:= 	0
5538dce70fSSoby Mathew
5685135283SDan Handleyinclude plat/arm/board/common/board_css.mk
5785135283SDan Handleyinclude plat/arm/common/arm_common.mk
5885135283SDan Handleyinclude plat/arm/soc/common/soc_css.mk
5985135283SDan Handleyinclude plat/arm/css/common/css_common.mk
601779ba6bSJuan Castillo
611779ba6bSJuan Castilloifeq (${KEY_ALG},ecdsa)
621779ba6bSJuan Castillo    $(error "ECDSA key algorithm is not fully supported on Juno.")
631779ba6bSJuan Castilloendif
64