Sandrine Bailleux | 9ca6279 | 2022-08-31 13:53:10 +0200 | [diff] [blame] | 1 | # |
Joel Goddard | 0e505a7 | 2023-12-21 14:47:42 +0000 | [diff] [blame] | 2 | # Copyright (c) 2022-2024, Arm Limited. All rights reserved. |
Sandrine Bailleux | 9ca6279 | 2022-08-31 13:53:10 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Sandrine Bailleux | ed6c341 | 2022-11-08 15:04:36 +0100 | [diff] [blame] | 7 | $(warning "RSS driver is an experimental feature") |
| 8 | |
Sandrine Bailleux | 9ca6279 | 2022-08-31 13:53:10 +0200 | [diff] [blame] | 9 | RSS_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 Goddard | cd72d00 | 2024-03-21 15:37:43 +0000 | [diff] [blame] | 16 | # Default to MHUv2 if PLAT_MHU_VERSION undefined |
| 17 | PLAT_MHU_VERSION ?= 2 |
| 18 | |
Joel Goddard | 0e505a7 | 2023-12-21 14:47:42 +0000 | [diff] [blame] | 19 | ifeq (${PLAT_MHU_VERSION}, 3) |
| 20 | RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \ |
| 21 | mhu_v3_x.c \ |
| 22 | mhu_wrapper_v3_x.c \ |
| 23 | ) |
| 24 | else ifeq (${PLAT_MHU_VERSION}, 2) |
Sandrine Bailleux | 9ca6279 | 2022-08-31 13:53:10 +0200 | [diff] [blame] | 25 | RSS_COMMS_SOURCES += $(addprefix drivers/arm/mhu/, \ |
| 26 | mhu_v2_x.c \ |
| 27 | mhu_wrapper_v2_x.c \ |
| 28 | ) |
Joel Goddard | 0e505a7 | 2023-12-21 14:47:42 +0000 | [diff] [blame] | 29 | else |
| 30 | $(error Unsupported MHU version) |
| 31 | endif |
Sandrine Bailleux | 9ca6279 | 2022-08-31 13:53:10 +0200 | [diff] [blame] | 32 | |
| 33 | PLAT_INCLUDES += -Idrivers/arm/rss \ |
| 34 | -Idrivers/arm/mhu |