summaryrefslogtreecommitdiff
path: root/include/linux/lis3lv02d.h
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2009-07-09 13:52:30 +0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-09-22 16:32:37 +0400
commite88267e1646037fa2c155515c78bd01a5c81f058 (patch)
tree93314fcc89231969cc69798ab8dabb2537c8b3b5 /include/linux/lis3lv02d.h
parentfc4f42e7fb021340c14dfd726313be6cfdeab19e (diff)
downloadlinux-e88267e1646037fa2c155515c78bd01a5c81f058.tar.xz
regulator: replace ADTV1 register by ADTV2 in da903x
In PXA3xx SoC family, V_CORE power doamin is supplied by BUCK1 that is controller by ADTV1 or ADTV2 register. By default, v1 and v2 has the same copy. If v1 or v2 is updated, the last value that is written to either register takes effect. It means that v1 and v2 has different copy. And the actual voltage output is determinated by last update on either register. DA9034/35 is binded with PXA3xx SoC family. While SoC is scaling OP or entering/exiting lower power mode, SoC needs to change voltage of V_CORE power doamin. In order to be efficient, POWER I2C (hardcode) mode could be enabled in SoC. In this mode, SoC will control v2 register directly. In original DA903x driver, software will only read regulator data from v1 register. But SoC controls v2 register directly. It results that v1 and v2 isn't synchronized. Wrong data will be read from v1 register. So access v2 register in da903x driver instead. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/lis3lv02d.h')
0 files changed, 0 insertions, 0 deletions