]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: pmic: add implementation of driver model pmic uclass
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 20 Apr 2015 18:07:41 +0000 (20:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:40:24 +0000 (22:40 +0200)
commit9d7c65249adc1682d977263a27d76baef0ae871c
tree34a68ad08b50e2d0371b4d5a140745bb3efe4071
parent0421de5143aba5e6cdd4ec977297b764db92b97d
dm: pmic: add implementation of driver model pmic uclass

This commit introduces the PMIC uclass implementation.
It allows providing the basic I/O interface for PMIC devices.
For the multi-function PMIC devices, this can be used as I/O
parent device, for each IC's interface. Then, each PMIC particular
function can be provided by the child device's operations, and the
child devices will use its parent for read/write by the common API.

Core files:
- 'include/power/pmic.h'
- 'drivers/power/pmic/pmic-uclass.c'

The old pmic framework is still kept and is independent.

For more detailed informations, please look into the header file.

Changes:
- new uclass-id: UCLASS_PMIC
- new config: CONFIG_DM_PMIC

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/power/Kconfig
drivers/power/pmic/Kconfig [new file with mode: 0644]
drivers/power/pmic/Makefile
drivers/power/pmic/pmic-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/power/pmic.h