Stephan Gerhold | 14fdf07 | 2021-12-01 20:01:11 +0100 | [diff] [blame] | 1 | # |
Stephan Gerhold | 69fabaa | 2023-03-14 11:09:44 +0100 | [diff] [blame] | 2 | # Copyright (c) 2021-2023, Stephan Gerhold <stephan@gerhold.net> |
Stephan Gerhold | 14fdf07 | 2021-12-01 20:01:11 +0100 | [diff] [blame] | 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 |
Andre Przywara | 30661a9 | 2023-02-03 15:30:14 +0000 | [diff] [blame] | 46 | ENABLE_SPE_FOR_NS := 0 |
Stephan Gerhold | 14fdf07 | 2021-12-01 20:01:11 +0100 | [diff] [blame] | 47 | ENABLE_SVE_FOR_NS := 0 |
| 48 | |
Stephan Gerhold | 69fabaa | 2023-03-14 11:09:44 +0100 | [diff] [blame] | 49 | # Disable workarounds unnecessary for Cortex-A53 |
| 50 | WORKAROUND_CVE_2017_5715 := 0 |
| 51 | WORKAROUND_CVE_2022_23960 := 0 |
| 52 | |
Stephan Gerhold | 14fdf07 | 2021-12-01 20:01:11 +0100 | [diff] [blame] | 53 | # MSM8916 uses ARM Cortex-A53 r0p0 so likely all the errata apply |
| 54 | ERRATA_A53_819472 := 1 |
| 55 | ERRATA_A53_824069 := 1 |
| 56 | ERRATA_A53_826319 := 1 |
| 57 | ERRATA_A53_827319 := 1 |
| 58 | ERRATA_A53_835769 := 1 |
| 59 | ERRATA_A53_836870 := 1 |
| 60 | ERRATA_A53_843419 := 1 |
| 61 | ERRATA_A53_855873 := 0 # Workaround works only for >= r0p3 |
| 62 | ERRATA_A53_1530924 := 1 |
| 63 | |
| 64 | $(eval $(call add_define,BL31_BASE)) |
| 65 | $(eval $(call add_define,BL32_BASE)) |