1STRUCT REGULATION_CO(9)          API reference         STRUCT REGULATION_CO(9)
2
3
4

NAME

6       struct_regulation_constraints - regulator operating constraints.
7

SYNOPSIS

9       struct regulation_constraints {
10         char * name;
11         int min_uV;
12         int max_uV;
13         int min_uA;
14         int max_uA;
15         unsigned int valid_modes_mask;
16         unsigned int valid_ops_mask;
17         int input_uV;
18         struct regulator_state state_disk;
19         struct regulator_state state_mem;
20         struct regulator_state state_standby;
21         suspend_state_t initial_state;
22         unsigned int initial_mode;
23         unsigned always_on:1;
24         unsigned boot_on:1;
25         unsigned apply_uV:1;
26       };
27

MEMBERS

29       name
30           Descriptive name for the constraints, used for display purposes.
31
32       min_uV
33           Smallest voltage consumers may set.
34
35       max_uV
36           Largest voltage consumers may set.
37
38       min_uA
39           Smallest consumers consumers may set.
40
41       max_uA
42           Largest current consumers may set.
43
44       valid_modes_mask
45           Mask of modes which may be configured by consumers.
46
47       valid_ops_mask
48           Operations which may be performed by consumers.
49
50       input_uV
51           Input voltage for regulator when supplied by another regulator.
52
53       state_disk
54           State for regulator when system is suspended in disk mode.
55
56       state_mem
57           State for regulator when system is suspended in mem mode.
58
59       state_standby
60           State for regulator when system is suspended in standby mode.
61
62       initial_state
63           Suspend state to set by default.
64
65       initial_mode
66           Mode to set at startup.
67
68       always_on
69           Set if the regulator should never be disabled.
70
71       boot_on
72           Set if the regulator is enabled when the system is initially
73           started. If the regulator is not enabled by the hardware or
74           bootloader then it will be enabled when the constraints are
75           applied.
76
77       apply_uV
78           Apply the voltage constraint when initialising.
79

DESCRIPTION

81       This struct describes regulator and board/machine specific constraints.
82

AUTHORS

84       Liam Girdwood <lrg@slimlogic.co.uk>
85           Author.
86
87       Mark Brown <broonie@opensource.wolfsonmicro.com>
88       Wolfson Microelectronics,
89
90
91           Author.
92
94Kernel Hackers Manual 2.6.         June 2019           STRUCT REGULATION_CO(9)
Impressum