struct regulator *regulator_get(struct device *dev, const char *id);
•
regulator_put
is an unified API call to free the regulator source:
void regulator_put(struct regulator *regulator, struct device *dev);
•
regulator_enable
is an unified API call to enable regulator output:
int regulator_enable(struct regulator *regulator);
•
regulator_disable
is an unified API call to disable regulator output:
int regulator_disable(struct regulator *regulator);
•
regulator_is_enabled
is the regulator output enabled:
int regulator_is_enabled(struct regulator *regulator);
•
regulator_set_voltage
is an unified API call to set regulator output voltage:
int regulator_set_voltage(struct regulator *regulator, int uV);
•
regulator_get_voltage
is an unified API call to get regulator output voltage:
int regulator_get_voltage(struct regulator *regulator);
You can find more APIs and details in the regulator core source code inside the Linux
kernel at:
<ltib_dir>/rpm/BUILD/linux/drivers/regulator/core.c
.
Chapter 19 PF100 Regulator Driver
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
155