xref: /rk3399_ARM-atf/lib/psci/psci_lib.mk (revision db9ee83432f9051092e4a00947e740a5ababcfc9)
1532ed618SSoby Mathew#
2*db9ee834SBoyan Karatotev# Copyright (c) 2016-2024, 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}/cpu_data.S	\
9727e5238SSoby Mathew				lib/el3_runtime/${ARCH}/context_mgmt.c	\
10727e5238SSoby Mathew				lib/cpus/${ARCH}/cpu_helpers.S		\
1110bcd761SJeenu Viswambharan				lib/cpus/errata_report.c		\
12727e5238SSoby Mathew				lib/locks/exclusive/${ARCH}/spinlock.S	\
13532ed618SSoby Mathew				lib/psci/psci_off.c			\
14532ed618SSoby Mathew				lib/psci/psci_on.c			\
15532ed618SSoby Mathew				lib/psci/psci_suspend.c			\
16532ed618SSoby Mathew				lib/psci/psci_common.c			\
17532ed618SSoby Mathew				lib/psci/psci_main.c			\
18532ed618SSoby Mathew				lib/psci/psci_setup.c			\
19532ed618SSoby Mathew				lib/psci/psci_system_off.c		\
20d4c596beSRoberto Vargas				lib/psci/psci_mem_protect.c		\
21727e5238SSoby Mathew				lib/psci/${ARCH}/psci_helpers.S
22727e5238SSoby Mathew
23727e5238SSoby Mathewifeq (${ARCH}, aarch64)
24*db9ee834SBoyan KaratotevPSCI_LIB_SOURCES	+=	lib/el3_runtime/aarch64/context.S
25727e5238SSoby Mathewendif
26532ed618SSoby Mathew
27532ed618SSoby Mathewifeq (${USE_COHERENT_MEM}, 1)
28532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_coherent.c
29532ed618SSoby Mathewelse
30532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_normal.c
31532ed618SSoby Mathewendif
32532ed618SSoby Mathew
33532ed618SSoby Mathewifeq (${ENABLE_PSCI_STAT}, 1)
34532ed618SSoby MathewPSCI_LIB_SOURCES		+=	lib/psci/psci_stat.c
35532ed618SSoby Mathewendif
36