blob: b62863881b106a4eb8f36fc0b046e11fc3c3e4ed (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __REGULATOR_UX500_H
#define __REGULATOR_UX500_H
struct platform_device;
/**
* struct u8500_regulator_info - u8500 regulator information
* @dev: device pointer
* @desc: regulator description
* @rdev: regulator device pointer
* @is_enabled: status of the regulator
* @epod_id: id for EPOD (power domain)
* @is_ramret: RAM retention switch for EPOD (power domain)
* @operating_point: operating point (only for vape, to be removed)
* @exclude_from_power_state: don't let this regulator prevent ApSLeep
*/
struct u8500_regulator_info {
struct device *dev;
struct regulator_desc desc;
struct regulator_dev *rdev;
bool is_enabled;
u16 epod_id;
bool is_ramret;
bool exclude_from_power_state;
unsigned int operating_point;
};
extern struct regulator_ops ux500_regulator_ops;
extern struct regulator_ops ux500_regulator_switch_ops;
int ux500_regulator_probe(struct platform_device *pdev,
struct u8500_regulator_info *info,
int num_regulators);
int ux500_regulator_remove(struct platform_device *pdev,
struct u8500_regulator_info *info,
int num_regulators);
#endif
|