1 /* 2 * Arm SCP/MCP Software 3 * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef SGI575_CORE_H 9 #define SGI575_CORE_H 10 11 #include <fwk_assert.h> 12 13 /* SGI575 only has one configuration, hence the constant values */ 14 15 #define SGI575_CLUSTERS_MAX 2 16 #define SGI575_CORES_PER_CLUSTER_MAX 4 17 sgi575_core_get_cluster_count(void)18static inline unsigned int sgi575_core_get_cluster_count(void) 19 { 20 return SGI575_CLUSTERS_MAX; 21 } 22 sgi575_core_get_core_per_cluster_count(unsigned int cluster)23static inline unsigned int sgi575_core_get_core_per_cluster_count( 24 unsigned int cluster) 25 { 26 fwk_assert(cluster < sgi575_core_get_cluster_count()); 27 28 return SGI575_CORES_PER_CLUSTER_MAX; 29 } 30 sgi575_core_get_core_count(void)31static inline unsigned int sgi575_core_get_core_count(void) 32 { 33 return SGI575_CLUSTERS_MAX * SGI575_CORES_PER_CLUSTER_MAX; 34 } 35 36 #endif /* SGI575_CORE_H */ 37