xref: /arm-trusted-firmware/plat/arm/css/sgi/sgi_topology.c (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu #include <plat/arm/common/plat_arm.h>
8*91f16700Schasinglulu 
9*91f16700Schasinglulu /*
10*91f16700Schasinglulu  * Common topology related methods for SGI and RD based platforms
11*91f16700Schasinglulu  */
12*91f16700Schasinglulu /*******************************************************************************
13*91f16700Schasinglulu  * This function returns the core count within the cluster corresponding to
14*91f16700Schasinglulu  * `mpidr`.
15*91f16700Schasinglulu  ******************************************************************************/
16*91f16700Schasinglulu unsigned int plat_arm_get_cluster_core_count(u_register_t mpidr)
17*91f16700Schasinglulu {
18*91f16700Schasinglulu 	return CSS_SGI_MAX_CPUS_PER_CLUSTER;
19*91f16700Schasinglulu }
20*91f16700Schasinglulu 
21*91f16700Schasinglulu #if ARM_PLAT_MT
22*91f16700Schasinglulu /******************************************************************************
23*91f16700Schasinglulu  * Return the number of PE's supported by the CPU.
24*91f16700Schasinglulu  *****************************************************************************/
25*91f16700Schasinglulu unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr)
26*91f16700Schasinglulu {
27*91f16700Schasinglulu 	return CSS_SGI_MAX_PE_PER_CPU;
28*91f16700Schasinglulu }
29*91f16700Schasinglulu #endif
30