xref: /rk3399_ARM-atf/include/plat/arm/common/fconf_arm_sp_getter.h (revision df21d41b771149c6cdaf1137bb9fc8ae150b768d)
17cd64d19SOlivier Deprez /*
2*0686a01bSArunachalam Ganapathy  * Copyright (c) 2020-2024, Arm Limited and Contributors. All rights reserved.
37cd64d19SOlivier Deprez  *
47cd64d19SOlivier Deprez  * SPDX-License-Identifier: BSD-3-Clause
57cd64d19SOlivier Deprez  */
67cd64d19SOlivier Deprez 
77cd64d19SOlivier Deprez #ifndef FCONF_ARM_SP_GETTER_H
87cd64d19SOlivier Deprez #define FCONF_ARM_SP_GETTER_H
97cd64d19SOlivier Deprez 
10885e2683SClaus Pedersen #include <common/tbbr/tbbr_img_def.h>
117cd64d19SOlivier Deprez #include <lib/fconf/fconf.h>
12*0686a01bSArunachalam Ganapathy #include <platform_def.h>
137cd64d19SOlivier Deprez #include <tools_share/uuid.h>
147cd64d19SOlivier Deprez 
157cd64d19SOlivier Deprez /* arm_sp getter */
167cd64d19SOlivier Deprez #define arm__sp_getter(prop)	arm_sp.prop
177cd64d19SOlivier Deprez 
18*0686a01bSArunachalam Ganapathy #ifdef PLAT_ARM_SP_MAX_SIZE
19*0686a01bSArunachalam Ganapathy #define ARM_SP_MAX_SIZE		PLAT_ARM_SP_MAX_SIZE
20*0686a01bSArunachalam Ganapathy #else
21f66827c0SArunachalam Ganapathy #define ARM_SP_MAX_SIZE		U(0xb0000)
22*0686a01bSArunachalam Ganapathy #endif /* PLAT_ARM_SP_MAX_SIZE */
23990d972fSManish Pandey #define ARM_SP_OWNER_NAME_LEN	U(8)
24cb3b5344SManish Pandey 
257cd64d19SOlivier Deprez struct arm_sp_t {
267cd64d19SOlivier Deprez 	unsigned int		number_of_sp;
277cd64d19SOlivier Deprez 	union uuid_helper_t	uuids[MAX_SP_IDS];
287cd64d19SOlivier Deprez 	uintptr_t		load_addr[MAX_SP_IDS];
29990d972fSManish Pandey 	char			owner[MAX_SP_IDS][ARM_SP_OWNER_NAME_LEN];
307cd64d19SOlivier Deprez };
317cd64d19SOlivier Deprez 
327cd64d19SOlivier Deprez int fconf_populate_arm_sp(uintptr_t config);
337cd64d19SOlivier Deprez 
347cd64d19SOlivier Deprez extern struct arm_sp_t arm_sp;
357cd64d19SOlivier Deprez 
36cb3b5344SManish Pandey extern bl_mem_params_node_t sp_mem_params_descs[MAX_SP_IDS];
37cb3b5344SManish Pandey 
387cd64d19SOlivier Deprez #endif /* FCONF_ARM_SP_GETTER_H */
39