mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
dm: regulator: add implementation of driver model regulator uclass
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>
This commit is contained in:
parent
4d9057e82b
commit
af41e8db26
8 changed files with 768 additions and 1 deletions
|
@ -51,6 +51,7 @@ enum uclass_id {
|
|||
|
||||
/* Power Management */
|
||||
UCLASS_PMIC, /* PMIC I/O device */
|
||||
UCLASS_REGULATOR, /* REGULATOR device */
|
||||
|
||||
UCLASS_COUNT,
|
||||
UCLASS_INVALID = -1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue