platform.mk 2.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

# indicate the reset vector address can be programmed
PROGRAMMABLE_RESET_ADDRESS	:=	1
USE_COHERENT_MEM		:=	0
RESET_TO_BL31			:=	0
ENABLE_STACK_PROTECTOR		:=	0
LS1043_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/layerscape/board/ls1043/ls_gic.c


LS1043_INTERCONNECT_SOURCES	:= 	drivers/arm/cci/cci.c

LS1043_SECURITY_SOURCES 	:=	plat/layerscape/common/ls_tzc380.c	\
					plat/layerscape/board/ls1043/ls1043_security.c

PLAT_INCLUDES			:=	-Iplat/layerscape/board/ls1043/include   \
					-Iinclude/plat/arm/common	\
					-Iplat/layerscape/common/include	\
					-Iinclude/drivers/arm   \
					-Iinclude/lib		\
					-Iinclude/drivers/io


PLAT_BL_COMMON_SOURCES		:=	drivers/console/aarch64/console.S	\
					plat/layerscape/common/aarch64/ls_console.S

LS1043_CPU_LIBS			:=	lib/cpus/${ARCH}/aem_generic.S

LS1043_CPU_LIBS			+=	lib/cpus/aarch64/cortex_a53.S

BL1_SOURCES			+= 	plat/layerscape/board/ls1043/ls1043_bl1_setup.c		\
					plat/layerscape/board/ls1043/ls1043_err.c			\
					drivers/delay_timer/delay_timer.c \

BL1_SOURCES     		+=	plat/layerscape/board/ls1043/${ARCH}/ls1043_helpers.S \
					${LS1043_CPU_LIBS}					\
					${LS1043_INTERCONNECT_SOURCES}		\
					$(LS1043_SECURITY_SOURCES)


BL2_SOURCES			+=	drivers/delay_timer/delay_timer.c		\
					plat/layerscape/board/ls1043/ls1043_bl2_setup.c		\
					plat/layerscape/board/ls1043/ls1043_err.c			\
					${LS1043_SECURITY_SOURCES}


BL31_SOURCES			+=	plat/layerscape/board/ls1043/ls1043_bl31_setup.c		\
					plat/layerscape/board/ls1043/ls1043_topology.c		\
					plat/layerscape/board/ls1043/aarch64/ls1043_helpers.S	\
					plat/layerscape/board/ls1043/ls1043_psci.c		\
					drivers/delay_timer/delay_timer.c		\
					${LS1043_CPU_LIBS}					\
					${LS1043_GIC_SOURCES}				\
					${LS1043_INTERCONNECT_SOURCES}			\
					${LS1043_SECURITY_SOURCES}

# Disable the PSCI platform compatibility layer
ENABLE_PLAT_COMPAT		:= 	0
MULTI_CONSOLE_API		:=	1

# Enable workarounds for selected Cortex-A53 erratas.
ERRATA_A53_855873		:=	1

ifneq (${ENABLE_STACK_PROTECTOR},0)
PLAT_BL_COMMON_SOURCES		+=	plat/layerscape/board/ls1043/ls1043_stack_protector.c
endif

ifeq (${ARCH},aarch32)
    NEED_BL32 := yes
endif

include plat/layerscape/common/ls_common.mk