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