blob: 0d1e30875183475ea9a0a445dd53b44f4d510e12 [file] [log] [blame]
Sandrine Bailleux9ca62792022-08-31 13:53:10 +02001#
Joel Goddard0e505a72023-12-21 14:47:42 +00002# Copyright (c) 2022-2024, Arm Limited. All rights reserved.
Sandrine Bailleux9ca62792022-08-31 13:53:10 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Sandrine Bailleuxed6c3412022-11-08 15:04:36 +01007$(warning "RSS driver is an experimental feature")
8
Sandrine Bailleux9ca62792022-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 Goddardcd72d002024-03-21 15:37:43 +000016# Default to MHUv2 if PLAT_MHU_VERSION undefined
17PLAT_MHU_VERSION ?= 2
18
Joel Goddard0e505a72023-12-21 14:47:42 +000019ifeq (${PLAT_MHU_VERSION}, 3)
20RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
21 mhu_v3_x.c \
22 mhu_wrapper_v3_x.c \
23 )
24else ifeq (${PLAT_MHU_VERSION}, 2)
Sandrine Bailleux9ca62792022-08-31 13:53:10 +020025RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \
26 mhu_v2_x.c \
27 mhu_wrapper_v2_x.c \
28 )
Joel Goddard0e505a72023-12-21 14:47:42 +000029else
30$(error Unsupported MHU version)
31endif
Sandrine Bailleux9ca62792022-08-31 13:53:10 +020032
33PLAT_INCLUDES += -Idrivers/arm/rss \
34 -Idrivers/arm/mhu