]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
mfd: as3722 Update VSEL access control
authorAlex Frid <afrid@nvidia.com>
Wed, 5 Feb 2014 08:06:41 +0000 (00:06 -0800)
committerAleksandr Frid <afrid@nvidia.com>
Tue, 18 Feb 2014 19:15:41 +0000 (11:15 -0800)
commit2acff98da011971cba17292e9730a7a47f465d5c
tree17ef4ed401fdfd23ec9445f3eaee116c96a0c759
parent877fcff03b27220b9777fe9b67534c06f2b6dd25
mfd: as3722 Update VSEL access control

- Added an option to mark VSEL registers as volatile by default.
This option should be set either in board platform data, or in device
tree node of the regulator controlled by hardware mechanism underneath
s/w driver.

- Replaced volatile registers table with callback that checks access
attribute at run-time. Added another callback to switch VSEL registers
attributes between volatile and cached.

- Set persistent property for VSEL of all SD regulators (persistent
value is zero). This would allow to use direct write for setting the
voltage selector instead of read-modify-write.

Bug 1454969

Change-Id: I9a434fa8568dc2717a81ae6ecf3891abb903befa
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/367357
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/mfd/as3722.c
drivers/regulator/as3722-regulator.c
include/linux/mfd/as3722-plat.h
include/linux/mfd/as3722.h