summaryrefslogtreecommitdiffstats
path: root/services/spd/pncd/pncd.mk
blob: 0f8eb25141c6a66b3b0db146ace31457e6a24103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2021-2022, ProvenRun S.A.S. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause

PNCD_DIR		:=	services/spd/pncd
SPD_INCLUDES		:=	-Iinclude/bl32/pnc
SPD_INCLUDES		+=	-Iinclude/common/

SPD_SOURCES		:=	services/spd/pncd/pncd_common.c		\
				services/spd/pncd/pncd_helpers.S	\
				services/spd/pncd/pncd_main.c

NEED_BL32		:=	yes

# The following constants need to be defined:
#   - SPD_PNCD_NS_IRQ: IRQ number used to notify NS world when SMC_ACTION_FROM_S is received
#   - SPD_PNCD_S_IRQ: IRQ number used to notify S world when SMC_ACTION_FROM_NS is received
$(eval $(call assert_numerics, SPD_PNCD_NS_IRQ SPD_PNCD_S_IRQ))

$(eval $(call add_defines,\
    $(sort \
        SPD_PNCD_NS_IRQ \
        SPD_PNCD_S_IRQ \
)))