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