]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: max8998 BUCK1/2 voltage change with use of GPIOs
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 27 Sep 2010 12:32:27 +0000 (14:32 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:15 +0000 (00:30 +0200)
commit50f19a45961ffa0445db02777ad9342119ceb2aa
treec4e1b67e4e843e53f6c3c8db70883ca8708eaf0f
parent58aa6334fbf5cf420a47cfd2718a0b299f40a379
regulator: max8998 BUCK1/2 voltage change with use of GPIOs

max8998_pmic_probe:
- modified to check if valid pins are defined at platform
data
- maximal voltage values (predefined at platform data) are uploaded to
max8998 device

max8998_set_voltage_buck:
- BUCK1/2 voltages change between values already defined
- Checks if valid GPIO pins are passed from platform data
- If requested voltage cannot be satisfied from already defined values,
then one of free slots is used
- Predefined maximum voltages (as defined at platform data) are always
available

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/regulator/max8998.c