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