/* * Arm SCP/MCP Software * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "n1sdp_core.h" #include "n1sdp_scc_reg.h" #include "n1sdp_scp_pik.h" #include unsigned int n1sdp_core_get_core_per_cluster_count(unsigned int cluster) { fwk_assert(cluster < n1sdp_core_get_cluster_count()); return CORES_PER_CLUSTER; } unsigned int n1sdp_core_get_core_count(void) { return (NUMBER_OF_CLUSTERS * CORES_PER_CLUSTER); } unsigned int n1sdp_core_get_cluster_count(void) { return NUMBER_OF_CLUSTERS; } bool n1sdp_is_multichip_enabled(void) { return ((SCC->PLATFORM_CTRL & SCC_PLATFORM_CTRL_MULTI_CHIP_MODE_MASK) >> SCC_PLATFORM_CTRL_MULTI_CHIP_MODE_POS); } uint8_t n1sdp_get_chipid(void) { return ((uint8_t)((SCC->PLATFORM_CTRL & SCC_PLATFORM_CTRL_CHIPID_MASK) >> SCC_PLATFORM_CTRL_CHIPID_POS)); }