summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/arizona-micsupp.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: arizona-micsupp: Add missing #includeCharles Keepax2014-05-081-0/+1
| | | | | | | | | | | | of.h is presently being included through asm-generic/gpio.h so will not be included on some architectures, causing implicit declaration errors for of_get_child_by_name, of_parse_phandle and of_node_put. This patch adds the direct include that should be there. Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: arizona-micsupp: Add processing of init_data from device treeCharles Keepax2014-04-181-0/+37
| | | | | Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: arizona-micsupp: Remove redundant error messageSachin Kamat2014-02-201-3/+1
| | | | | | | kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
*-. Merge remote-tracking branches 'regulator/fix/pfuze100', ↵Mark Brown2014-01-231-41/+11
|\ \ | | | | | | | | | 'regulator/fix/s5m8767', 'regulator/topic/ab8500', 'regulator/topic/act8865', 'regulator/topic/anatop', 'regulator/topic/arizona' and 'regulator/topic/as3722' into regulator-linus
| | * regulator: arizona-micsupp: Convert to use linear rangesCharles Keepax2013-11-241-41/+11
| |/ | | | | | | | | Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* | regulator: arizona-micsupp: Correct wm5110 voltage selectionCharles Keepax2013-11-151-2/+52
|/ | | | | | | | | | wm5110 provides different voltage configurations than the other Arizona parts, this patch adds support for this into the regulator driver. Also fixup the default for the configuration register for wm5110. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org (v3.12)
* regulator: arizona-micsupp: Convert to devm_regulator_register()Mark Brown2013-09-171-11/+3
| | | | Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: arizona-micsupp: Enable bypass in default constraintsMark Brown2013-01-131-1/+2
| | | | | | This will be used as part of low power accessory detect. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* regulator: arizona-micsupp: Enable SYSCLK for charge pumpMark Brown2013-01-131-3/+72
| | | | | | | | If we are in non-bypass mode then the SYSCLK is required for full charge pump operation, otherwise we will fall back to bypass mode. Use the DAPM context exposed by the ASoC driver to manage this. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* Merge remote-tracking branch 'regulator/topic/hotplug' into regulator-nextMark Brown2012-12-101-3/+3
|\
| * regulator: remove use of __devexitBill Pemberton2012-11-201-1/+1
| | | | | | | | | | | | | | | | CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * regulator: remove use of __devinitBill Pemberton2012-11-201-1/+1
| | | | | | | | | | | | | | | | CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * regulator: remove use of __devexit_pBill Pemberton2012-11-201-1/+1
| | | | | | | | | | | | | | | | CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | regulator: arizona-micsupp: Add ramp time informationMark Brown2012-11-281-0/+2
|/ | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* regulator: arizona-micsupp: Support get/set bypassMark Brown2012-09-101-0/+5
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* regulator: arizona-micsupp: Force regulated mode until we have API supportMark Brown2012-07-041-0/+4
| | | | | | It's almost certainly what the user would expect. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* regulator: arizona-micsupp: Fix choosing selector in arizona_micsupp_map_voltageAxel Lin2012-06-261-1/+1
| | | | | | | | | | | | | | If min_uV is in the range of: 3250001~3269999, current code uses the equation: selector = DIV_ROUND_UP(min_uV - 1700000, 50000); Then selector will be 32. Then arizona_micsupp_list_voltage returns -EINVAL for this case which is wrong. This patch fixes this issue: If min_uV > 3200000, selector should be ARIZONA_MICSUPP_MAX_SELECTOR. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* regulator: arizona: Add support for microphone supplies on Arizona devicesMark Brown2012-06-201-0/+184
The Wolfson Arizona platform is used for a range of low power audio hub CODECs. Many of these devices feature an integrated power supply for the microphone which is supported by this driver. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
OpenPOWER on IntegriCloud