pmic: Extend PMIC framework to support multiple instances of PMIC devices
authorŁukasz Majewski <l.majewski@samsung.com>
Tue, 13 Nov 2012 03:21:55 +0000 (03:21 +0000)
committerAnatolij Gustschin <agust@denx.de>
Wed, 14 Nov 2012 10:21:09 +0000 (11:21 +0100)
commitc7336815078ff3745e3130aeff35991e3e98e61e
tree8ace1a85705cbd5b6484a45fefd093161a7a5b05
parent452329f1d57fe7cbc54e65617e84d5bb1f93f631
pmic: Extend PMIC framework to support multiple instances of PMIC devices

The PMIC framework has been extended to support multiple instances of
the variety of devices responsible for power management.
This change allows supporting of e.g. fuel gauge, charger, MUIC (Micro USB
Interface Circuit).
Power related includes have been moved to ./include/power directory.
This is a first of a series of patches - in the future "pmic" will be
replaced with "power".

Two important issues:
1. The PMIC needs to be initialized just after malloc is configured
2. It uses list to hold information about available PMIC devices

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
26 files changed:
board/davedenx/qong/qong.c
board/freescale/mx31pdk/mx31pdk.c
board/freescale/mx35pdk/mx35pdk.c
board/freescale/mx51evk/mx51evk.c
board/freescale/mx53evk/mx53evk.c
board/freescale/mx53loco/mx53loco.c
board/genesi/mx51_efikamx/efikamx.c
board/hale/tt01/tt01.c
board/samsung/goni/goni.c
board/samsung/trats/trats.c
board/samsung/universal_c210/universal.c
board/ttcontrol/vision2/vision2.c
drivers/misc/pmic_core.c
drivers/misc/pmic_dialog.c
drivers/misc/pmic_fsl.c
drivers/misc/pmic_i2c.c
drivers/misc/pmic_max8997.c
drivers/misc/pmic_max8998.c
drivers/misc/pmic_spi.c
drivers/rtc/mc13xxx-rtc.c
include/max8997_pmic.h [deleted file]
include/max8998_pmic.h [deleted file]
include/pmic.h [deleted file]
include/power/max8997_pmic.h [new file with mode: 0644]
include/power/max8998_pmic.h [new file with mode: 0644]
include/power/pmic.h [new file with mode: 0644]