![Freescale Semiconductor i.MX 6DualLite Reference Manual Download Page 171](http://html1.mh-extra.com/html/freescale-semiconductor/i-mx-6duallite/i-mx-6duallite_reference-manual_2330523171.webp)
•
regulator_set_voltage
used to set regulator output voltage:
•
int regulator_set_voltage(struct regulator *regulator, int uV);
•
regulator_get_voltage
used to get regulator output voltage:
•
int regulator_get_voltage(struct regulator *regulator);
For more APIs and details in the regulator core source code inside the Linux kernel, see:
<ltib_dir>/rpm/BUILD/linux/drivers/regulator/core.c.
23.2.3 Driver Interface Details
Access to the Anatop regulator is provided through the API of the regulator core driver.
The Anatop regulator driver provides the following regulator controls:
• Seven LDO regulators.
• All of the regulator functions are handled by setting the appropriate Anatop hardware
register values. This is done by calling the regulator core APIs to access the Anatop
hardware registers.
23.2.4 Source Code Structure
The Anatop regulator driver is located in the regulator device driver directory:
<ltib_dir>/rpm/BUILD/linux/drivers/regulator
Table 23-1. Anatop Power Management Driver Files
File
Description
core.c
Linux kernel interface for regulators.
anatop-regulator.c
Implementation of the Anatop regulator client driver
The Anatop regulators for i.MX 6DualLite ARM2 or i.MX 6DualLite sabrelite board are
registered under
<ltib_dir>/rpm/BUILD/linux/arch/arm/mach-mx6/mx6_anatop_regulator.c.
23.2.5 Menu Configuration Options
To get to the Anatop regulator configuration, use the command ./ltib -c when located in
the <ltib dir>. On the configuration screen, select Configure Kernel, and then exit. The
following Linux kernel configurations are provided for the Anatop Regulator driver:
Chapter 23 Anatop Regulator Driver
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
171