OMAP3+: PM: introduce a central pmic control
authorNishanth Menon <nm@ti.com>
Thu, 28 Jul 2011 10:36:36 +0000 (16:06 +0530)
committerVishwanath BS <vishwanath.bs@ti.com>
Wed, 26 Oct 2011 05:44:25 +0000 (11:14 +0530)
commit44908d9bf47208173a70d16cd64d224d8fe295e8
treecc76a2c403d651e81958a9cdd56fb800074cbb95
parent8948d5aa9a69bb7006663c422f3cb0eaabcd3627
OMAP3+: PM: introduce a central pmic control

Since we are starting to use multiple PMICs in various combinations,
use the existing .omap_chip = OMAP_CHIP_INIT() to mark the
structures we are interested in using per OMAP device we
are currently running on. This mapping is based on the default
device recommendations from TI. Boards using custom PMICs now
have an opportunity to register their own custom mapping.

With this we no longer need omap4_twl_init and omap3_twl_int
instead we introduce a registration mechanism which is PMIC
generic and move twl implementation to use the same.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/omap_pmic.c [new file with mode: 0644]
arch/arm/mach-omap2/omap_twl.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/voltage.h