fvp_ve_topology.c 1.2 KB

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