regulator: tps6507x: allow driver to use DEFDCDC{2,3}_HIGH register
authorAnuj Aggarwal <anuj.aggarwal@ti.com>
Mon, 12 Jul 2010 12:24:06 +0000 (17:54 +0530)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 28 Jul 2010 14:09:26 +0000 (15:09 +0100)
commit7d14831e21060fbfbfe8453460ac19205f4ce1c2
treef62423f7c13f9cfe1b555638dda8ab17fbca4777
parente9a1c5129de1caf4526b8df5f200ff628b2ffab4
regulator: tps6507x: allow driver to use DEFDCDC{2,3}_HIGH register

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
In TPS6507x, depending on the status of DEFDCDC{2,3} pin either
DEFDCDC{2,3}_LOW or DEFDCDC{2,3}_HIGH register needs to be read or
programmed to change the output voltage.

The current driver assumes DEFDCDC{2,3} pins are always tied low
and thus operates only on DEFDCDC{2,3}_LOW register. This need
not always be the case (as is found on OMAP-L138 EVM).

Unfortunately, software cannot read the status of DEFDCDC{2,3} pins.
So, this information is passed through platform data depending on
how the board is wired.

Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/tps6507x-regulator.c
include/linux/regulator/tps6507x.h [new file with mode: 0644]