]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: twl-core: API to set the regcache bypass for a given regmap in twl
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 3 Jan 2014 13:27:47 +0000 (15:27 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 8 Jan 2014 11:37:39 +0000 (11:37 +0000)
commit38efeb0f236dab2fae27eab3e91005ea0366582e
tree435f2ead61cc9258fbf389603510781cc9da9275
parentba99187eaca7599a5db1d2349a2861f57311bc22
mfd: twl-core: API to set the regcache bypass for a given regmap in twl

If the regcache is enabled on the regmap module drivers might need to access
to HW register(s) in certain cases in cache bypass mode.
As an example of this is the audio block's ANAMICL register. In normal
operation the content can be cached but during initialization one bit from
the register need to be monitored. With the twl_set_regcache_bypass() the
client driver can switch regcache bypass on and off when it is needed so
we can utilize the regcache for more registers.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl-core.c
include/linux/i2c/twl.h