xref: /arm-trusted-firmware/plat/arm/board/fvp_ve/fvp_ve_topology.c (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2019, Arm Limited. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu #include <platform_def.h>
8*91f16700Schasinglulu 
9*91f16700Schasinglulu #include <drivers/arm/fvp/fvp_pwrc.h>
10*91f16700Schasinglulu #include <plat/arm/common/arm_config.h>
11*91f16700Schasinglulu #include <plat/arm/common/plat_arm.h>
12*91f16700Schasinglulu #include <plat/common/platform.h>
13*91f16700Schasinglulu 
14*91f16700Schasinglulu /* The FVP VE power domain tree descriptor */
15*91f16700Schasinglulu static const unsigned char fvp_ve_power_domain_tree_desc[] = {
16*91f16700Schasinglulu 	1,
17*91f16700Schasinglulu 	/* No of children for the root node */
18*91f16700Schasinglulu 	FVP_VE_CLUSTER_COUNT,
19*91f16700Schasinglulu 	/* No of children for the first cluster node */
20*91f16700Schasinglulu 	FVP_VE_CORE_COUNT,
21*91f16700Schasinglulu };
22*91f16700Schasinglulu 
23*91f16700Schasinglulu /*******************************************************************************
24*91f16700Schasinglulu  * This function returns the topology according to FVP_VE_CLUSTER_COUNT.
25*91f16700Schasinglulu  ******************************************************************************/
26*91f16700Schasinglulu const unsigned char *plat_get_power_domain_tree_desc(void)
27*91f16700Schasinglulu {
28*91f16700Schasinglulu 	return fvp_ve_power_domain_tree_desc;
29*91f16700Schasinglulu }
30*91f16700Schasinglulu 
31*91f16700Schasinglulu /*******************************************************************************
32*91f16700Schasinglulu  * Currently FVP VE has only been tested with one core, therefore 0 is returned.
33*91f16700Schasinglulu  ******************************************************************************/
34*91f16700Schasinglulu int plat_core_pos_by_mpidr(u_register_t mpidr)
35*91f16700Schasinglulu {
36*91f16700Schasinglulu 	return 0;
37*91f16700Schasinglulu }
38