blob: 1627bbdb0f22f2bdf8656ce333ac4a0a92b2253f [file] [log] [blame]
developer3b31b932022-09-05 16:07:00 +08001/*
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
13static 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 ******************************************************************************/
25const unsigned char *plat_get_power_domain_tree_desc(void)
26{
27 return mtk_power_domain_tree_desc;
28}