blob: 2d199e06163dc474efcd10651bb7d2c6a0019716 [file] [log] [blame]
Stephan Gerholddddba192021-12-01 20:01:11 +01001#
2# Copyright (c) 2021, Stephan Gerhold <stephan@gerhold.net>
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include drivers/arm/gic/v2/gicv2.mk
8include lib/xlat_tables_v2/xlat_tables.mk
9
10PLAT_BL_COMMON_SOURCES := ${XLAT_TABLES_LIB_SRCS}
11
12PLAT_INCLUDES := -Iinclude/plat/arm/common/${ARCH} \
13 -Iplat/qti/msm8916/include
14
15BL31_SOURCES += ${GICV2_SOURCES} \
16 drivers/delay_timer/delay_timer.c \
17 drivers/delay_timer/generic_delay_timer.c \
18 lib/cpus/${ARCH}/cortex_a53.S \
19 plat/common/plat_gicv2.c \
20 plat/common/plat_psci_common.c \
21 plat/qti/msm8916/msm8916_bl31_setup.c \
22 plat/qti/msm8916/msm8916_pm.c \
23 plat/qti/msm8916/msm8916_topology.c \
24 plat/qti/msm8916/${ARCH}/msm8916_helpers.S \
25 plat/qti/msm8916/${ARCH}/uartdm_console.S
26
27# Only BL31 is supported at the moment and is entered on a single CPU
28RESET_TO_BL31 := 1
29COLD_BOOT_SINGLE_CPU := 1
30
31# Build config flags
32# ------------------
33BL31_BASE ?= 0x86500000
34BL32_BASE ?= 0x86000000
35PRELOADED_BL33_BASE ?= 0x8f600000
36
37# Have different sections for code and rodata
38SEPARATE_CODE_AND_RODATA := 1
39
40# Single cluster
41WARMBOOT_ENABLE_DCACHE_EARLY := 1
42
43# Disable features unsupported in ARMv8.0
44ENABLE_AMU := 0
45ENABLE_SPE_FOR_LOWER_ELS := 0
46ENABLE_SVE_FOR_NS := 0
47
48# MSM8916 uses ARM Cortex-A53 r0p0 so likely all the errata apply
49ERRATA_A53_819472 := 1
50ERRATA_A53_824069 := 1
51ERRATA_A53_826319 := 1
52ERRATA_A53_827319 := 1
53ERRATA_A53_835769 := 1
54ERRATA_A53_836870 := 1
55ERRATA_A53_843419 := 1
56ERRATA_A53_855873 := 0 # Workaround works only for >= r0p3
57ERRATA_A53_1530924 := 1
58
59$(eval $(call add_define,BL31_BASE))
60$(eval $(call add_define,BL32_BASE))