]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5359bd7cb6523cb6bef2b4970fc2c2688729b0e9
treef62423f7c13f9cfe1b555638dda8ab17fbca4777
parent52c39a9fd85b7757921c2cc14ec3dd081ebdb0e9
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]