2 * Copyright (C) ST-Ericsson SA 2010
4 * License Terms: GNU General Public License v2
6 * Author: Bengt Jonsson <bengt.g.jonsson@stericsson.com> for ST-Ericsson
8 * Interface to power domain regulators on DB8500
11 #ifndef __REGULATOR_H__
12 #define __REGULATOR_H__
14 /* Number of DB8500 regulators and regulator enumeration */
15 enum db8500_regulator_id
{
16 DB8500_REGULATOR_VAPE
,
17 DB8500_REGULATOR_VARM
,
18 DB8500_REGULATOR_VMODEM
,
19 DB8500_REGULATOR_VPLL
,
20 DB8500_REGULATOR_VSMPS1
,
21 DB8500_REGULATOR_VSMPS2
,
22 DB8500_REGULATOR_VSMPS3
,
23 DB8500_REGULATOR_VRF1
,
24 DB8500_REGULATOR_SWITCH_SVAMMDSP
,
25 DB8500_REGULATOR_SWITCH_SVAMMDSPRET
,
26 DB8500_REGULATOR_SWITCH_SVAPIPE
,
27 DB8500_REGULATOR_SWITCH_SIAMMDSP
,
28 DB8500_REGULATOR_SWITCH_SIAMMDSPRET
,
29 DB8500_REGULATOR_SWITCH_SIAPIPE
,
30 DB8500_REGULATOR_SWITCH_SGA
,
31 DB8500_REGULATOR_SWITCH_B2R2_MCDE
,
32 DB8500_REGULATOR_SWITCH_ESRAM12
,
33 DB8500_REGULATOR_SWITCH_ESRAM12RET
,
34 DB8500_REGULATOR_SWITCH_ESRAM34
,
35 DB8500_REGULATOR_SWITCH_ESRAM34RET
,
40 * Exported interface for CPUIdle only. This function is called with all
41 * interrupts turned off.
43 int power_state_active_is_enabled(void);