xref: /rk3399_ARM-atf/services/std_svc/lfa/bl31_lfa.c (revision e4d0622c7e9a259a28172a1dfcf5bc4f38ca8594)
1 /*
2  * Copyright (c) 2025, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <services/bl31_lfa.h>
8 #include <services/lfa_svc.h>
9 
10 static int lfa_bl31_prime(struct lfa_component_status *activation)
11 {
12 	return LFA_WRONG_STATE;
13 }
14 
15 static int lfa_bl31_activate(struct lfa_component_status *activation,
16 		uint64_t ep_address,
17 		uint64_t context_id)
18 {
19 	return LFA_WRONG_STATE;
20 }
21 
22 static struct lfa_component_ops bl31_activator = {
23 	.prime = lfa_bl31_prime,
24 	.activate = lfa_bl31_activate,
25 	.may_reset_cpu = false,
26 	.cpu_rendezvous_required = true,
27 };
28 
29 struct lfa_component_ops *get_bl31_activator(void)
30 {
31 	return &bl31_activator;
32 }
33