xref: /rk3399_ARM-atf/plat/arm/board/neoverse_rd/common/nrd_topology.c (revision 27b0440a8f9b2c12ba11a97dc5c630e49ee2828a)
14ced5956SRohit Mathew /*
24ced5956SRohit Mathew  * Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
34ced5956SRohit Mathew  *
44ced5956SRohit Mathew  * SPDX-License-Identifier: BSD-3-Clause
54ced5956SRohit Mathew  */
64ced5956SRohit Mathew 
74ced5956SRohit Mathew #include <plat/arm/common/plat_arm.h>
84ced5956SRohit Mathew 
94ced5956SRohit Mathew /*
10*75414f71SRohit Mathew  * Common topology related methods for Neoverse RD platforms
114ced5956SRohit Mathew  */
124ced5956SRohit Mathew /*******************************************************************************
134ced5956SRohit Mathew  * This function returns the core count within the cluster corresponding to
144ced5956SRohit Mathew  * `mpidr`.
154ced5956SRohit Mathew  ******************************************************************************/
plat_arm_get_cluster_core_count(u_register_t mpidr)164ced5956SRohit Mathew unsigned int plat_arm_get_cluster_core_count(u_register_t mpidr)
174ced5956SRohit Mathew {
182cd66a44SRohit Mathew 	return NRD_MAX_CPUS_PER_CLUSTER;
194ced5956SRohit Mathew }
204ced5956SRohit Mathew 
214ced5956SRohit Mathew #if ARM_PLAT_MT
224ced5956SRohit Mathew /******************************************************************************
234ced5956SRohit Mathew  * Return the number of PE's supported by the CPU.
244ced5956SRohit Mathew  *****************************************************************************/
plat_arm_get_cpu_pe_count(u_register_t mpidr)254ced5956SRohit Mathew unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr)
264ced5956SRohit Mathew {
272cd66a44SRohit Mathew 	return NRD_MAX_PE_PER_CPU;
284ced5956SRohit Mathew }
294ced5956SRohit Mathew #endif
30