mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 18:41:03 +00:00
af41e8db26
This commit introduces the implementation of dm regulator API. Device tree support allows for auto binding. And by the basic uclass operations, it allows to driving the devices in a common way. For detailed informations, please look into the header file. Core files: - drivers/power/regulator-uclass.c - provides regulator common functions api - include/power/regulator.h - define all structures required by the regulator Changes: - new uclass-id: UCLASS_REGULATOR - new config: CONFIG_DM_REGULATOR Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
17 lines
819 B
Text
17 lines
819 B
Text
config DM_REGULATOR
|
|
bool "Enable Driver Model for REGULATOR drivers (UCLASS_REGULATOR)"
|
|
depends on DM
|
|
---help---
|
|
This config enables the driver model regulator support.
|
|
UCLASS_REGULATOR - designed to provide a common API for basic regulator's
|
|
functions, like get/set Voltage or Current value, enable state, etc...
|
|
Note:
|
|
When enabling this, please read the description, found in the files:
|
|
- 'include/power/pmic.h'
|
|
- 'include/power/regulator.h'
|
|
- 'drivers/power/pmic/pmic-uclass.c'
|
|
- 'drivers/power/pmic/regulator-uclass.c'
|
|
It's important to call the device_bind() with the proper node offset,
|
|
when binding the regulator devices. The pmic_bind_childs() can be used
|
|
for this purpose if PMIC I/O driver is implemented or dm_scan_fdt_node()
|
|
otherwise. Detailed informations can be found in the header file.
|