topology.c 822 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2022, Mediatek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <arch.h>
  7. #include <lib/psci/psci.h>
  8. #include <platform_def.h>
  9. #pragma weak plat_get_power_domain_tree_desc
  10. static const unsigned char mtk_power_domain_tree_desc[] = {
  11. /* Number of root nodes */
  12. PLATFORM_SYSTEM_COUNT,
  13. /* Number of children for the root node */
  14. PLATFORM_CLUSTER_COUNT,
  15. /* Number of children for the first cluster node */
  16. PLATFORM_CLUSTER0_CORE_COUNT,
  17. };
  18. /*******************************************************************************
  19. * This function returns the default topology tree information.
  20. ******************************************************************************/
  21. const unsigned char *plat_get_power_domain_tree_desc(void)
  22. {
  23. return mtk_power_domain_tree_desc;
  24. }