| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 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 := ${GICV2_SOURCES} \ |
| 11 |
${XLAT_TABLES_LIB_SRCS} \ |
| 12 |
drivers/delay_timer/delay_timer.c \ |
| 13 |
drivers/delay_timer/generic_delay_timer.c \ |
| 14 |
plat/common/plat_gicv2.c \ |
| 15 |
plat/qti/msm8916/msm8916_gicv2.c \ |
| 16 |
plat/qti/msm8916/msm8916_setup.c \ |
| 17 |
plat/qti/msm8916/${ARCH}/msm8916_helpers.S \ |
| 18 |
plat/qti/msm8916/${ARCH}/uartdm_console.S |
| 19 |
|
| 20 |
MSM8916_CPU := $(if ${ARM_CORTEX_A7},cortex_a7,cortex_a53) |
| 21 |
MSM8916_PM_SOURCES := drivers/arm/cci/cci.c \ |
| 22 |
lib/cpus/${ARCH}/${MSM8916_CPU}.S \ |
| 23 |
plat/common/plat_psci_common.c \ |
| 24 |
plat/qti/msm8916/msm8916_config.c \ |
| 25 |
plat/qti/msm8916/msm8916_cpu_boot.c \ |
| 26 |
plat/qti/msm8916/msm8916_pm.c \ |
| 27 |
plat/qti/msm8916/msm8916_topology.c |
| 28 |
|
| 29 |
BL31_SOURCES += ${MSM8916_PM_SOURCES} \ |
| 30 |
plat/qti/msm8916/msm8916_bl31_setup.c |
| 31 |
|
| 32 |
PLAT_INCLUDES := -Iplat/qti/msm8916/include |
| 33 |
|
| 34 |
ifeq (${ARCH},aarch64) |
| 35 |
|
| 36 |
PLAT_INCLUDES += -Iinclude/plat/arm/common/${ARCH} |
| 37 |
endif |
| 38 |
|
| 39 |
|
| 40 |
RESET_TO_BL31 := 1 |
| 41 |
COLD_BOOT_SINGLE_CPU := 1 |
| 42 |
|
| 43 |
|
| 44 |
SEPARATE_CODE_AND_RODATA := 1 |
| 45 |
|
| 46 |
|
| 47 |
WARMBOOT_ENABLE_DCACHE_EARLY := 1 |
| 48 |
|
| 49 |
|
| 50 |
ENABLE_SPE_FOR_NS := 0 |
| 51 |
ENABLE_SVE_FOR_NS := 0 |
| 52 |
|
| 53 |
|
| 54 |
WORKAROUND_CVE_2017_5715 := 0 |
| 55 |
WORKAROUND_CVE_2022_23960 := 0 |
| 56 |
|
| 57 |
ifeq (${MSM8916_CPU},cortex_a53) |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
ERRATA_A53_819472 := 1 |
| 62 |
ERRATA_A53_824069 := 1 |
| 63 |
ERRATA_A53_826319 := 1 |
| 64 |
ERRATA_A53_827319 := 1 |
| 65 |
ERRATA_A53_835769 := 1 |
| 66 |
ERRATA_A53_836870 := 1 |
| 67 |
ERRATA_A53_843419 := 1 |
| 68 |
ERRATA_A53_855873 := 1 |
| 69 |
ERRATA_A53_1530924 := 1 |
| 70 |
endif |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
BL31_BASE ?= 0x86500000 |
| 75 |
PRELOADED_BL33_BASE ?= 0x8f600000 |
| 76 |
|
| 77 |
ifeq (${ARCH},aarch64) |
| 78 |
BL32_BASE ?= BL31_LIMIT |
| 79 |
$(eval $(call add_define,BL31_BASE)) |
| 80 |
else |
| 81 |
ifeq (${AARCH32_SP},none) |
| 82 |
$(error Variable AARCH32_SP has to be set for AArch32) |
| 83 |
endif |
| 84 |
|
| 85 |
BL32_BASE ?= $(BL31_BASE) |
| 86 |
endif |
| 87 |
$(eval $(call add_define,BL32_BASE)) |
| 88 |
|
| 89 |
|
| 90 |
QTI_UART_NUM ?= 2 |
| 91 |
$(eval $(call assert_numeric,QTI_UART_NUM)) |
| 92 |
$(eval $(call add_define,QTI_UART_NUM)) |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
QTI_RUNTIME_UART ?= 0 |
| 97 |
$(eval $(call assert_boolean,QTI_RUNTIME_UART)) |
| 98 |
$(eval $(call add_define,QTI_RUNTIME_UART)) |