| 1 |
/* |
| 2 |
* Copyright (c) 2019, Arm Limited. All rights reserved. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <platform_def.h> |
| 8 |
|
| 9 |
#include <drivers/arm/fvp/fvp_pwrc.h> |
| 10 |
#include <plat/arm/common/arm_config.h> |
| 11 |
#include <plat/arm/common/plat_arm.h> |
| 12 |
#include <plat/common/platform.h> |
| 13 |
|
| 14 |
/* The FVP VE power domain tree descriptor */ |
| 15 |
static const unsigned char fvp_ve_power_domain_tree_desc[] = { |
| 16 |
1, |
| 17 |
/* No of children for the root node */ |
| 18 |
FVP_VE_CLUSTER_COUNT, |
| 19 |
/* No of children for the first cluster node */ |
| 20 |
FVP_VE_CORE_COUNT, |
| 21 |
}; |
| 22 |
|
| 23 |
/******************************************************************************* |
| 24 |
* This function returns the topology according to FVP_VE_CLUSTER_COUNT. |
| 25 |
******************************************************************************/ |
| 26 |
const unsigned char *plat_get_power_domain_tree_desc(void) |
| 27 |
{ |
| 28 |
return fvp_ve_power_domain_tree_desc; |
| 29 |
} |
| 30 |
|
| 31 |
/******************************************************************************* |
| 32 |
* Currently FVP VE has only been tested with one core, therefore 0 is returned. |
| 33 |
******************************************************************************/ |
| 34 |
int plat_core_pos_by_mpidr(u_register_t mpidr) |
| 35 |
{ |
| 36 |
return 0; |
| 37 |
} |