mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 01:17:01 +02:00
Move versal_private.h to platform specific include directory. Also, rename it to plat_private.h instead of having platform name. So, it can be used to common source files which needs platform specific data. Signed-off-by: Tejas Patel <tejas.patel@xilinx.com> Signed-off-by: Jolly Shah <jolly.shah@xilinx.com> Change-Id: I65eefbea7722ffa2760b992491c00eebef5bcef4
20 lines
395 B
C
20 lines
395 B
C
/*
|
|
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <plat_private.h>
|
|
#include <plat/common/platform.h>
|
|
|
|
int plat_core_pos_by_mpidr(u_register_t mpidr)
|
|
{
|
|
if (mpidr & MPIDR_CLUSTER_MASK)
|
|
return -1;
|
|
|
|
if ((mpidr & MPIDR_CPU_MASK) >= PLATFORM_CORE_COUNT)
|
|
return -1;
|
|
|
|
return versal_calc_core_pos(mpidr);
|
|
}
|