aboutsummaryrefslogtreecommitdiff
path: root/product/n1sdp/scp_ramfw/config_power_domain.h
blob: 2eae63846515ff176cf2bd2fd257cf94768e8849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Arm SCP/MCP Software
 * Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef CONFIG_POWER_DOMAIN_H
#define CONFIG_POWER_DOMAIN_H

/*
 * Power domain indices for the statically defined domains used for:
 * - Indexing the domains in the n1sdp_power_domain_static_element_table
 * - Indexing the SYSTOP children in the power domain tree
 *
 * When calculating a power domain element index, use the formula:
 * core_count + pd_static_dev_idx
 */
enum pd_static_dev_idx {
    PD_STATIC_DEV_IDX_CLUSTER0,
    PD_STATIC_DEV_IDX_CLUSTER1,
    PD_STATIC_DEV_IDX_DBGTOP,
    PD_STATIC_DEV_IDX_SYSTOP,
    PD_STATIC_DEV_IDX_COUNT
};

#endif /* CONFIG_POWER_DOMAIN_H */