mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

The errata framework has a helper to invoke workarounds, complete with a cpu rev_var check. We can use that directly instead of the apply_cpu_pwr_dwn_errata to save on some code, as well as an extra branch. It's also more readable. Also, apply_erratum invocation in cpu files don't need to check the rev_var as that was already done by the cpu_ops dispatcher for us to end up in the file. Finally, X2 erratum 2768515 only applies in the powerdown sequence, i.e. at runtime. It doesn't achieve anything at reset, so we can label it accordingly. Change-Id: I02f9dd7d0619feb54c870938ea186be5e3a6ca7b Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
35 lines
989 B
Makefile
35 lines
989 B
Makefile
#
|
|
# Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
PSCI_LIB_SOURCES := lib/el3_runtime/cpu_data_array.c \
|
|
lib/el3_runtime/${ARCH}/cpu_data.S \
|
|
lib/el3_runtime/${ARCH}/context_mgmt.c \
|
|
lib/cpus/${ARCH}/cpu_helpers.S \
|
|
lib/cpus/errata_report.c \
|
|
lib/locks/exclusive/${ARCH}/spinlock.S \
|
|
lib/psci/psci_off.c \
|
|
lib/psci/psci_on.c \
|
|
lib/psci/psci_suspend.c \
|
|
lib/psci/psci_common.c \
|
|
lib/psci/psci_main.c \
|
|
lib/psci/psci_setup.c \
|
|
lib/psci/psci_system_off.c \
|
|
lib/psci/psci_mem_protect.c \
|
|
lib/psci/${ARCH}/psci_helpers.S
|
|
|
|
ifeq (${ARCH}, aarch64)
|
|
PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
|
|
endif
|
|
|
|
ifeq (${USE_COHERENT_MEM}, 1)
|
|
PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
|
|
else
|
|
PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
|
|
endif
|
|
|
|
ifeq (${ENABLE_PSCI_STAT}, 1)
|
|
PSCI_LIB_SOURCES += lib/psci/psci_stat.c
|
|
endif
|