xref: /rk3399_ARM-atf/plat/mediatek/topology/group_4_3_1/topology.c (revision 06f3c7058c42a9f1a9f7df75ea2de71a000855e8)
1 /*
2  * Copyright (c) 2025, Mediatek Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <arch.h>
8 
9 #include <lib/psci/psci.h>
10 #include <platform_def.h>
11 
12 #pragma weak plat_get_power_domain_tree_desc
13 
14 #define PWR_DOMAIN_GROUP_COUNT		U(3)
15 #define PWR_DOMAIN_GROUP_NODE_0		U(4)
16 #define PWR_DOMAIN_GROUP_NODE_1		U(3)
17 #define PWR_DOMAIN_GROUP_NODE_2		U(1)
18 
19 static const unsigned char mtk_power_domain_tree_desc[] = {
20 	PLATFORM_SYSTEM_COUNT,
21 	PWR_DOMAIN_GROUP_COUNT,
22 	PWR_DOMAIN_GROUP_NODE_0,
23 	PWR_DOMAIN_GROUP_NODE_1,
24 	PWR_DOMAIN_GROUP_NODE_2
25 };
26 
27 /*******************************************************************************
28  * This function returns the default topology tree information.
29  ******************************************************************************/
30 const unsigned char *plat_get_power_domain_tree_desc(void)
31 {
32 	return mtk_power_domain_tree_desc;
33 }
34