xref: /rk3399_ARM-atf/plat/arm/board/juno/platform.mk (revision 85135283f380ed377a33d89f77a3f41fce43b29d)
1*85135283SDan Handley#
2*85135283SDan Handley# Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved.
3*85135283SDan Handley#
4*85135283SDan Handley# Redistribution and use in source and binary forms, with or without
5*85135283SDan Handley# modification, are permitted provided that the following conditions are met:
6*85135283SDan Handley#
7*85135283SDan Handley# Redistributions of source code must retain the above copyright notice, this
8*85135283SDan Handley# list of conditions and the following disclaimer.
9*85135283SDan Handley#
10*85135283SDan Handley# Redistributions in binary form must reproduce the above copyright notice,
11*85135283SDan Handley# this list of conditions and the following disclaimer in the documentation
12*85135283SDan Handley# and/or other materials provided with the distribution.
13*85135283SDan Handley#
14*85135283SDan Handley# Neither the name of ARM nor the names of its contributors may be used
15*85135283SDan Handley# to endorse or promote products derived from this software without specific
16*85135283SDan Handley# prior written permission.
17*85135283SDan Handley#
18*85135283SDan Handley# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*85135283SDan Handley# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*85135283SDan Handley# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*85135283SDan Handley# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*85135283SDan Handley# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*85135283SDan Handley# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*85135283SDan Handley# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*85135283SDan Handley# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*85135283SDan Handley# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*85135283SDan Handley# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*85135283SDan Handley# POSSIBILITY OF SUCH DAMAGE.
29*85135283SDan Handley#
30*85135283SDan Handley
31*85135283SDan HandleyPLAT_INCLUDES		:=	-Iplat/arm/board/juno/include
32*85135283SDan Handley
33*85135283SDan HandleyPLAT_BL_COMMON_SOURCES	:=	plat/arm/board/juno/aarch64/juno_helpers.S
34*85135283SDan Handley
35*85135283SDan HandleyBL1_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
36*85135283SDan Handley				lib/cpus/aarch64/cortex_a57.S
37*85135283SDan Handley
38*85135283SDan HandleyBL2_SOURCES		+=	plat/arm/board/juno/juno_security.c	\
39*85135283SDan Handley
40*85135283SDan HandleyBL31_SOURCES		+=	lib/cpus/aarch64/cortex_a53.S		\
41*85135283SDan Handley				lib/cpus/aarch64/cortex_a57.S
42*85135283SDan Handley
43*85135283SDan Handley
44*85135283SDan Handley# Enable workarounds for selected Cortex-A57 erratas.
45*85135283SDan HandleyERRATA_A57_806969	:=	0
46*85135283SDan HandleyERRATA_A57_813420	:=	1
47*85135283SDan Handley
48*85135283SDan Handley# Enable option to skip L1 data cache flush during the Cortex-A57 cluster
49*85135283SDan Handley# power down sequence
50*85135283SDan HandleySKIP_A57_L1_FLUSH_PWR_DWN	:=	 1
51*85135283SDan Handley
52*85135283SDan Handleyinclude plat/arm/board/common/board_css.mk
53*85135283SDan Handleyinclude plat/arm/common/arm_common.mk
54*85135283SDan Handleyinclude plat/arm/soc/common/soc_css.mk
55*85135283SDan Handleyinclude plat/arm/css/common/css_common.mk
56