blob: c554ac30d9fcfb36d9acedda0de81d32f3d813dc [file] [log] [blame]
Jiafei Pan46367ad2018-03-02 07:23:30 +00001#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# indicate the reset vector address can be programmed
8PROGRAMMABLE_RESET_ADDRESS := 1
9USE_COHERENT_MEM := 0
10RESET_TO_BL31 := 0
11ENABLE_STACK_PROTECTOR := 0
12LS1043_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
13 drivers/arm/gic/v2/gicv2_main.c \
14 drivers/arm/gic/v2/gicv2_helpers.c \
15 plat/common/plat_gicv2.c \
16 plat/layerscape/board/ls1043/ls_gic.c
17
18
19LS1043_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c
20
21LS1043_SECURITY_SOURCES := plat/layerscape/common/ls_tzc380.c \
22 plat/layerscape/board/ls1043/ls1043_security.c
23
24PLAT_INCLUDES := -Iplat/layerscape/board/ls1043/include \
25 -Iinclude/plat/arm/common \
26 -Iplat/layerscape/common/include \
27 -Iinclude/drivers/arm \
28 -Iinclude/lib \
29 -Iinclude/drivers/io
30
31
32PLAT_BL_COMMON_SOURCES := drivers/console/aarch64/console.S \
33 plat/layerscape/common/aarch64/ls_console.S
34
35LS1043_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S
36
37LS1043_CPU_LIBS += lib/cpus/aarch64/cortex_a53.S
38
39BL1_SOURCES += plat/layerscape/board/ls1043/ls1043_bl1_setup.c \
40 plat/layerscape/board/ls1043/ls1043_err.c \
41 drivers/delay_timer/delay_timer.c \
42
43BL1_SOURCES += plat/layerscape/board/ls1043/${ARCH}/ls1043_helpers.S \
44 ${LS1043_CPU_LIBS} \
45 ${LS1043_INTERCONNECT_SOURCES} \
46 $(LS1043_SECURITY_SOURCES)
47
48
49BL2_SOURCES += drivers/delay_timer/delay_timer.c \
50 plat/layerscape/board/ls1043/ls1043_bl2_setup.c \
51 plat/layerscape/board/ls1043/ls1043_err.c \
52 ${LS1043_SECURITY_SOURCES}
53
54
55BL31_SOURCES += plat/layerscape/board/ls1043/ls1043_bl31_setup.c \
56 plat/layerscape/board/ls1043/ls1043_topology.c \
57 plat/layerscape/board/ls1043/aarch64/ls1043_helpers.S \
58 plat/layerscape/board/ls1043/ls1043_psci.c \
59 drivers/delay_timer/delay_timer.c \
60 ${LS1043_CPU_LIBS} \
61 ${LS1043_GIC_SOURCES} \
62 ${LS1043_INTERCONNECT_SOURCES} \
63 ${LS1043_SECURITY_SOURCES}
64
65# Disable the PSCI platform compatibility layer
Jiafei Pan46367ad2018-03-02 07:23:30 +000066MULTI_CONSOLE_API := 1
67
68# Enable workarounds for selected Cortex-A53 erratas.
69ERRATA_A53_855873 := 1
70
71ifneq (${ENABLE_STACK_PROTECTOR},0)
72PLAT_BL_COMMON_SOURCES += plat/layerscape/board/ls1043/ls1043_stack_protector.c
73endif
74
75ifeq (${ARCH},aarch32)
76 NEED_BL32 := yes
77endif
78
79include plat/layerscape/common/ls_common.mk