xref: /rk3399_ARM-atf/plat/arm/board/fvp/fvp_spmd_logical_sp.c (revision 5cf311f3a41fc114289265305a6254a8fb412c0e)
1 /*
2  * Copyright (c) 2023, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #include <common/debug.h>
7 #include <services/el3_spmd_logical_sp.h>
8 #include <services/ffa_svc.h>
9 #include <smccc_helpers.h>
10 
11 #define SPMD_LP_PARTITION_ID SPMD_LP_ID_START
12 #define SPMD_LP_UUID {0xe98e43ad, 0xb7db524f, 0x47a3bf57, 0x1588f4e3}
13 
14 /* SPMD Logical SP currently only supports sending direct message. */
15 #define SPMD_PARTITION_PROPERTIES FFA_PARTITION_DIRECT_REQ_SEND
16 
17 static int32_t fvp_spmd_logical_partition_init(void)
18 {
19 	INFO("FVP SPMD LSP: Init function called.\n");
20 	return 0;
21 }
22 
23 /* Register SPMD logical partition  */
24 DECLARE_SPMD_LOGICAL_PARTITION(
25 	fvp_spmd_logical_partition,
26 	fvp_spmd_logical_partition_init,/* Init Function */
27 	SPMD_LP_PARTITION_ID,		/* FF-A Partition ID */
28 	SPMD_LP_UUID,			/* UUID */
29 	SPMD_PARTITION_PROPERTIES	/* Partition Properties. */
30 );
31