blob: 91b830c2d28685f007026ebf6897f1768ef8daac [file] [log] [blame]
Sandrine Bailleux43484972022-08-31 13:53:10 +02001#
Joel Goddard996b3af2023-12-21 14:47:42 +00002# Copyright (c) 2022-2024, Arm Limited. All rights reserved.
Sandrine Bailleux43484972022-08-31 13:53:10 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Sandrine Bailleux7e6cee52022-11-08 15:04:36 +01007$(warning "RSS driver is an experimental feature")
8
Sandrine Bailleux43484972022-08-31 13:53:10 +02009RSS_COMMS_SOURCES := $(addprefix drivers/arm/rss/, \
10 rss_comms.c \
11 rss_comms_protocol.c \
12 rss_comms_protocol_embed.c \
13 rss_comms_protocol_pointer_access.c \
14 )
15
Joel Goddard996b3af2023-12-21 14:47:42 +000016ifeq (${PLAT_MHU_VERSION}, 3)
17RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
18 mhu_v3_x.c \
19 mhu_wrapper_v3_x.c \
20 )
21else ifeq (${PLAT_MHU_VERSION}, 2)
Sandrine Bailleux43484972022-08-31 13:53:10 +020022RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
23 mhu_v2_x.c \
24 mhu_wrapper_v2_x.c \
25 )
Joel Goddard996b3af2023-12-21 14:47:42 +000026else
27$(error Unsupported MHU version)
28endif
Sandrine Bailleux43484972022-08-31 13:53:10 +020029
30PLAT_INCLUDES += -Idrivers/arm/rss \
31 -Idrivers/arm/mhu