STRUCT REGULATOR_DES(9) | API reference | STRUCT REGULATOR_DES(9) |
NAME¶
struct_regulator_desc - Static regulator descriptor
SYNOPSIS¶
struct regulator_desc {
const char * name;
const char * supply_name;
const char * of_match;
const char * regulators_node;
int (* of_parse_cb) (struct device_node *,const struct regulator_desc *,struct regulator_config *);
int id;
unsigned int continuous_voltage_range:1;
unsigned n_voltages;
const struct regulator_ops * ops;
int irq;
enum regulator_type type;
struct module * owner;
unsigned int min_uV;
unsigned int uV_step;
unsigned int linear_min_sel;
int fixed_uV;
unsigned int ramp_delay;
int min_dropout_uV;
const struct regulator_linear_range * linear_ranges;
int n_linear_ranges;
const unsigned int * volt_table;
unsigned int vsel_reg;
unsigned int vsel_mask;
unsigned int csel_reg;
unsigned int csel_mask;
unsigned int apply_reg;
unsigned int apply_bit;
unsigned int enable_reg;
unsigned int enable_mask;
unsigned int enable_val;
unsigned int disable_val;
bool enable_is_inverted;
unsigned int bypass_reg;
unsigned int bypass_mask;
unsigned int bypass_val_on;
unsigned int bypass_val_off;
unsigned int active_discharge_on;
unsigned int active_discharge_off;
unsigned int active_discharge_mask;
unsigned int active_discharge_reg;
unsigned int enable_time;
unsigned int off_on_delay;
unsigned int (* of_map_mode) (unsigned int mode); };
MEMBERS¶
name
supply_name
of_match
regulators_node
of_parse_cb
id
continuous_voltage_range
n_voltages
ops
irq
type
owner
min_uV
uV_step
linear_min_sel
fixed_uV
ramp_delay
min_dropout_uV
linear_ranges
n_linear_ranges
volt_table
vsel_reg
vsel_mask
csel_reg
csel_mask
apply_reg
apply_bit
enable_reg
enable_mask
enable_val
disable_val
enable_is_inverted
bypass_reg
bypass_mask
bypass_val_on
bypass_val_off
active_discharge_on
active_discharge_off
active_discharge_mask
active_discharge_reg
enable_time
off_on_delay
of_map_mode
DESCRIPTION¶
Each regulator registered with the core is described with a structure of this type and a struct regulator_config. This structure contains the non-varying parts of the regulator description.
AUTHORS¶
Liam Girdwood <lrg@slimlogic.co.uk>
Mark Brown <broonie@opensource.wolfsonmicro.com>
Wolfson Microelectronics,
COPYRIGHT¶
March 2017 | Kernel Hackers Manual 4.10 |