Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | /* |
Vijayenthiran Subramaniam | f5cb00f | 2019-12-27 19:27:57 +0530 | [diff] [blame] | 2 | * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 7 | #include <plat/arm/common/plat_arm.h> |
| 8 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 9 | /* |
Vijayenthiran Subramaniam | f5cb00f | 2019-12-27 19:27:57 +0530 | [diff] [blame] | 10 | * Common topology related methods for SGI and RD based platforms |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 11 | */ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 12 | /******************************************************************************* |
| 13 | * This function returns the core count within the cluster corresponding to |
| 14 | * `mpidr`. |
| 15 | ******************************************************************************/ |
| 16 | unsigned int plat_arm_get_cluster_core_count(u_register_t mpidr) |
| 17 | { |
Chandni Cherukuri | a5d44ec | 2018-08-14 15:25:34 +0530 | [diff] [blame] | 18 | return CSS_SGI_MAX_CPUS_PER_CLUSTER; |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 19 | } |
Chandni Cherukuri | d61a705 | 2018-08-01 15:58:48 +0530 | [diff] [blame] | 20 | |
Vijayenthiran Subramaniam | f5cb00f | 2019-12-27 19:27:57 +0530 | [diff] [blame] | 21 | #if ARM_PLAT_MT |
Chandni Cherukuri | 449db45 | 2018-08-16 13:45:17 +0530 | [diff] [blame] | 22 | /****************************************************************************** |
| 23 | * Return the number of PE's supported by the CPU. |
| 24 | *****************************************************************************/ |
| 25 | unsigned int plat_arm_get_cpu_pe_count(u_register_t mpidr) |
| 26 | { |
| 27 | return CSS_SGI_MAX_PE_PER_CPU; |
| 28 | } |
Vijayenthiran Subramaniam | f5cb00f | 2019-12-27 19:27:57 +0530 | [diff] [blame] | 29 | #endif |