2 * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
7 #include <platform_def.h>
10 #include <lib/psci/psci.h>
12 #include <plat_private.h>
14 /*******************************************************************************
15 * This function returns the RockChip default topology tree information.
16 ******************************************************************************/
17 const unsigned char *plat_get_power_domain_tree_desc(void)
19 return rockchip_power_domain_tree_desc
;
22 int plat_core_pos_by_mpidr(u_register_t mpidr
)
24 unsigned int cluster_id
, cpu_id
;
26 cpu_id
= mpidr
& MPIDR_AFFLVL_MASK
;
27 cluster_id
= mpidr
& MPIDR_CLUSTER_MASK
;
29 cpu_id
+= (cluster_id
>> PLAT_RK_CLST_TO_CPUID_SHIFT
);
31 if (cpu_id
>= PLATFORM_CORE_COUNT
)