MC13892 Regulator Driver
i.MX51 EVK Linux Reference Manual
3-2
Freescale Semiconductor
changes that use the power management driver and the regulator client driver can affect the operation or
stability of the entire system.
3.4
Regulator APIs
The regulator power architecture is designed to provide a generic interface to voltage and current
regulators within the Linux 2.6 kernel. It is intended to provide voltage and current control to client or
consumer drivers and also provide status information to user space applications through a sysfs interface.
The intention is to allow systems to dynamically control regulator output to save power and prolong
battery life. This applies to both voltage regulators (where voltage output is controllable) and current sinks
(where current output is controllable).
For more details visit
http://opensource.wolfsonmicro.com/node/15
Under this framework, most power operations can be done by the following unified API calls:
•
regulator_get—lookup and obtain a reference to a regulator
struct regulator *regulator_get(struct device *dev, const char *id);
•
regulator_put—free the regulator source
void regulator_put(struct regulator *regulator, struct device *dev);
•
regulator_enable—enable regulator output
int regulator_enable(struct regulator *regulator);
•
regulator_disable—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—set regulator output voltage
int regulator_set_voltage(struct regulator *regulator, int uV);
•
regulator_get_voltage—get regulator output voltage
int regulator_get_voltage(struct regulator *regulator);
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
.
Summary of Contents for i.MX51 EVK
Page 1: ...Part Number 924 76374 Rev 10 11 01 11 2010 i MX51 EVK Linux Reference Manual...
Page 14: ...i MX51 EVK Linux Reference Manual xiv Freescale Semiconductor...
Page 18: ...i MX51 EVK Linux Reference Manual xviii Freescale Semiconductor...
Page 24: ...i MX51 EVK Linux Reference Manual xxiv Freescale Semiconductor...
Page 38: ...Machine Specific Layer MSL i MX51 EVK Linux Reference Manual 2 8 Freescale Semiconductor...
Page 52: ...MC13892 Digitizer Driver i MX51 EVK Linux Reference Manual 5 4 Freescale Semiconductor...
Page 64: ...TV Encoder TVE Driver i MX51 EVK Linux Reference Manual 10 4 Freescale Semiconductor...
Page 82: ...Video for Linux Two V4L2 Driver i MX51 EVK Linux Reference Manual 12 8 Freescale Semiconductor...
Page 86: ...i MX5 Dual Display i MX51 EVK Linux Reference Manual 13 4 Freescale Semiconductor...
Page 100: ...X Windows Acceleration i MX51 EVK Linux Reference Manual 16 6 Freescale Semiconductor...
Page 118: ...Low Level Keypad Driver i MX51 EVK Linux Reference Manual 20 6 Freescale Semiconductor...
Page 134: ...Security Drivers i MX51 EVK Linux Reference Manual 22 10 Freescale Semiconductor...
Page 148: ...Inter IC I2C Driver i MX51 EVK Linux Reference Manual 24 4 Freescale Semiconductor...
Page 178: ...ARC USB Driver i MX51 EVK Linux Reference Manual 29 10 Freescale Semiconductor...
Page 194: ...OProfile i MX51 EVK Linux Reference Manual 33 6 Freescale Semiconductor...