1 /*
2  * Arm SCP/MCP Software
3  * Copyright (c) 2019-2021, Arm Limited and Contributors. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef CONFIG_SENSOR_H
9 #define CONFIG_SENSOR_H
10 
11 /*
12  * Enable full set of sensors available on the platform. Using just the sub-set
13  * would not affect functionality but free-up space available.
14  */
15 #define USE_FULL_SET_SENSORS    0
16 
17 /* Sensor indices for Juno */
18 enum mod_juno_sensor_element_idx {
19     /* XRP7724 sensor */
20     MOD_JUNO_SENSOR_XRP7724_PMIC_TEMP_IDX,
21 
22     /* PVT sensors */
23     MOD_JUNO_PVT_SENSOR_VOLT_BIG,
24     MOD_JUNO_PVT_SENSOR_VOLT_LITTLE,
25     MOD_JUNO_PVT_SENSOR_TEMP_SOC,
26     MOD_JUNO_PVT_SENSOR_VOLT_SYS,
27 
28     /* ADC sensors */
29     MOD_JUNO_SENSOR_VOLT_SYS_IDX,
30     MOD_JUNO_SENSOR_VOLT_BIG_IDX,
31     MOD_JUNO_SENSOR_VOLT_LITTLE_IDX,
32     MOD_JUNO_SENSOR_VOLT_GPU_IDX,
33 
34     #if USE_FULL_SET_SENSORS
35     MOD_JUNO_SENSOR_AMPS_SYS_IDX,
36     MOD_JUNO_SENSOR_AMPS_BIG_IDX,
37     MOD_JUNO_SENSOR_AMPS_LITTLE_IDX,
38     MOD_JUNO_SENSOR_AMPS_GPU_IDX,
39     MOD_JUNO_SENSOR_WATT_SYS_IDX,
40     MOD_JUNO_SENSOR_WATT_BIG_IDX,
41     MOD_JUNO_SENSOR_WATT_LITTLE_IDX,
42     MOD_JUNO_SENSOR_WATT_GPU_IDX,
43     MOD_JUNO_SENSOR_JOULE_SYS_IDX,
44     MOD_JUNO_SENSOR_JOULE_BIG_IDX,
45     MOD_JUNO_SENSOR_JOULE_LITTLE_IDX,
46     MOD_JUNO_SENSOR_JOULE_GPU_IDX,
47     #endif
48 
49     /* Number of sensors - Juno R0 */
50     MOD_JUNO_R0_SENSOR_IDX_COUNT
51 };
52 
53 /* Additional PVT Sensors for Juno R1 & R2 */
54 enum mod_juno_pvt_sensor_r1_r2_element_idx {
55     MOD_JUNO_PVT_SENSOR_TEMP_BIG = MOD_JUNO_R0_SENSOR_IDX_COUNT,
56     MOD_JUNO_PVT_SENSOR_TEMP_LITTLE,
57     MOD_JUNO_PVT_SENSOR_TEMP_GPU_0,
58     MOD_JUNO_PVT_SENSOR_TEMP_GPU_1,
59 
60     /* Number of sensors - Juno R1 & R2 */
61     MOD_JUNO_R1_R2_SENSOR_IDX_COUNT
62 };
63 
64 #endif /* CONFIG_SENSOR_H */
65