blob: 1c3b5bfc8776c7329fa57b7266278f4a50137e42 [file] [log] [blame]
Nariman Poushinb44cfc62018-02-26 06:52:04 +00001/*
Vijayenthiran Subramaniama9fbf132019-12-27 19:27:57 +05302 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Nariman Poushinb44cfc62018-02-26 06:52:04 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diazbd9344f2019-01-25 14:30:04 +00007#include <plat/arm/common/plat_arm.h>
8
Nariman Poushinb44cfc62018-02-26 06:52:04 +00009/*
Vijayenthiran Subramaniama9fbf132019-12-27 19:27:57 +053010 * Common topology related methods for SGI and RD based platforms
Nariman Poushinb44cfc62018-02-26 06:52:04 +000011 */
Nariman Poushinb44cfc62018-02-26 06:52:04 +000012/*******************************************************************************
13 * This function returns the core count within the cluster corresponding to
14 * `mpidr`.
15 ******************************************************************************/
16unsigned int plat_arm_get_cluster_core_count(u_register_t mpidr)
17{
Chandni Cherukuria50a5832018-08-14 15:25:34 +053018 return CSS_SGI_MAX_CPUS_PER_CLUSTER;
Nariman Poushinb44cfc62018-02-26 06:52:04 +000019}
Chandni Cherukuria41d1b22018-08-01 15:58:48 +053020
Vijayenthiran Subramaniama9fbf132019-12-27 19:27:57 +053021#if ARM_PLAT_MT
Chandni Cherukuribd3d7b42018-08-16 13:45:17 +053022/******************************************************************************
23 * Return the number of PE's supported by the CPU.
24 *****************************************************************************/
25unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr)
26{
27 return CSS_SGI_MAX_PE_PER_CPU;
28}
Vijayenthiran Subramaniama9fbf132019-12-27 19:27:57 +053029#endif