xref: /rk3399_ARM-atf/lib/psci/psci_lib.mk (revision d43b2ea64e20c80109d1388b1fda38e2ffe0d60d)
1532ed618SSoby Mathew#
2*d43b2ea6SBoyan Karatotev# Copyright (c) 2016-2025, Arm Limited and Contributors. All rights reserved.
3532ed618SSoby Mathew#
482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
5532ed618SSoby Mathew#
6532ed618SSoby Mathew
7532ed618SSoby MathewPSCI_LIB_SOURCES	:=	lib/el3_runtime/cpu_data_array.c	\
8727e5238SSoby Mathew				lib/el3_runtime/${ARCH}/context_mgmt.c	\
9727e5238SSoby Mathew				lib/cpus/${ARCH}/cpu_helpers.S		\
1010bcd761SJeenu Viswambharan				lib/cpus/errata_report.c		\
11727e5238SSoby Mathew				lib/locks/exclusive/${ARCH}/spinlock.S	\
12532ed618SSoby Mathew				lib/psci/psci_off.c			\
13532ed618SSoby Mathew				lib/psci/psci_on.c			\
14532ed618SSoby Mathew				lib/psci/psci_suspend.c			\
15532ed618SSoby Mathew				lib/psci/psci_common.c			\
16532ed618SSoby Mathew				lib/psci/psci_main.c			\
17532ed618SSoby Mathew				lib/psci/psci_setup.c			\
18532ed618SSoby Mathew				lib/psci/psci_system_off.c		\
19d4c596beSRoberto Vargas				lib/psci/psci_mem_protect.c		\
20727e5238SSoby Mathew				lib/psci/${ARCH}/psci_helpers.S
21727e5238SSoby Mathew
22727e5238SSoby Mathewifeq (${ARCH}, aarch64)
23db9ee834SBoyan KaratotevPSCI_LIB_SOURCES	+=	lib/el3_runtime/aarch64/context.S
24727e5238SSoby Mathewendif
25532ed618SSoby Mathew
26532ed618SSoby Mathewifeq (${USE_COHERENT_MEM}, 1)
27532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_coherent.c
28532ed618SSoby Mathewelse
29532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_normal.c
30532ed618SSoby Mathewendif
31532ed618SSoby Mathew
32532ed618SSoby Mathewifeq (${ENABLE_PSCI_STAT}, 1)
33532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/psci/psci_stat.c
34532ed618SSoby Mathewendif
35