Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / regulator / dbx500-prcmu.h
blob2fb3aaef9dbb8886ae892b0971377f40b25d5c56
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) ST-Ericsson SA 2010
5 * Author: Bengt Jonsson <bengt.jonsson@stericsson.com> for ST-Ericsson,
6 * Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson
7 */
9 #ifndef DBX500_REGULATOR_H
10 #define DBX500_REGULATOR_H
12 #include <linux/platform_device.h>
14 /**
15 * struct dbx500_regulator_info - dbx500 regulator information
16 * @desc: regulator description
17 * @is_enabled: status of the regulator
18 * @epod_id: id for EPOD (power domain)
19 * @is_ramret: RAM retention switch for EPOD (power domain)
22 struct dbx500_regulator_info {
23 struct regulator_desc desc;
24 bool is_enabled;
25 u16 epod_id;
26 bool is_ramret;
27 bool exclude_from_power_state;
30 void power_state_active_enable(void);
31 int power_state_active_disable(void);
34 #ifdef CONFIG_REGULATOR_DEBUG
35 int ux500_regulator_debug_init(struct platform_device *pdev,
36 struct dbx500_regulator_info *regulator_info,
37 int num_regulators);
39 int ux500_regulator_debug_exit(void);
40 #else
42 static inline int ux500_regulator_debug_init(struct platform_device *pdev,
43 struct dbx500_regulator_info *regulator_info,
44 int num_regulators)
46 return 0;
49 static inline int ux500_regulator_debug_exit(void)
51 return 0;
54 #endif
55 #endif