blob: 1c3b5bfc8776c7329fa57b7266278f4a50137e42 [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001/*
Vijayenthiran Subramaniamf5cb00f2019-12-27 19:27:57 +05302 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Nariman Poushin0ece80f2018-02-26 06:52:04 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diazbd7b7402019-01-25 14:30:04 +00007#include <plat/arm/common/plat_arm.h>
8
Nariman Poushin0ece80f2018-02-26 06:52:04 +00009/*
Vijayenthiran Subramaniamf5cb00f2019-12-27 19:27:57 +053010 * Common topology related methods for SGI and RD based platforms
Nariman Poushin0ece80f2018-02-26 06:52:04 +000011 */
Nariman Poushin0ece80f2018-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 Cherukuria5d44ec2018-08-14 15:25:34 +053018 return CSS_SGI_MAX_CPUS_PER_CLUSTER;
Nariman Poushin0ece80f2018-02-26 06:52:04 +000019}
Chandni Cherukurid61a7052018-08-01 15:58:48 +053020
Vijayenthiran Subramaniamf5cb00f2019-12-27 19:27:57 +053021#if ARM_PLAT_MT
Chandni Cherukuri449db452018-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 Subramaniamf5cb00f2019-12-27 19:27:57 +053029#endif