]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Add power control interface for pm8606 chip
authorJett.Zhou <jtzhou@marvell.com>
Thu, 1 Mar 2012 10:59:19 +0000 (11:59 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:52 +0000 (18:46 +0100)
commit23de435a59b37eda468472ac67179eee5ef10a07
treed0659611c578e0ae4779da35000ad510f1e426ba
parentfe2afaa5412126f7a41aec811228a1f439d232a0
mfd: Add power control interface for pm8606 chip

The reference group and internal oscillator are shared by sub-devs
like led, backlight and vibrator in PM8606 chip. Now introduce a
voting mechanism to enable/disable it.

Add pm8606_osc_enable() and pm8606_osc_disable() interface and
related defines to support this. This interface will be called by
vibrator led and backlight driver.The refernce group and internal
oscillator are enabled only when at least one of it's clients holds
it on or disabled only all the clients don't use it any more based
on the above mechanism.

Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm860x-core.c
include/linux/mfd/88pm860x.h