Age | Commit message (Collapse) | Author |
|
A "possible recursive locking detected"-warning is issued when a
regulator has supply regulators and it shall notify the call chain.
This is due to locking mutexes of the same lock class, i.e. the locks
reside in the regulator_dev struct.
Since this is valid behavior for the regulators, this patch changes the
mutex lock into nested, as suggested in lockdep-design.txt.
ST-Ericsson ID: 283165
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I8e9eae92783414dc49a99c44b7970a246aa9c273
Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18538
Reviewed-by: Daniel WILLERUD <daniel.willerud@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
AB5500 core driver is updated for cut1.0.
It includes code clean up.
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1f61561836acc12cdd970cb9f4d7e79ab3901e95
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20844
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic33a0ba6f7ff9fd1bf82b0858a5439ff69cf2297
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21178
Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: WP257121
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I91faae392552b8d0e993e1935115b63db9e7e268
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20654
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: ER 324615
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I616eda9d8e292c05dd8094d8085f5b488ee90396
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19533
Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
Reviewed-by: Yvan FILLION <yvan.fillion@stericsson.com>
Tested-by: Yvan FILLION <yvan.fillion@stericsson.com>
Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com>
|
|
Vsmps3 is put in HW control by SysClkReq1 at init. The
corresponding settings in suspend-force are removed.
ST-Ericsson Linux next: -
ST-Ericsson ID: ER326467
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I4d20ed770fe931919f5bd0bf68d53cb69a19bf89
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18985
|
|
The USB regulator is controlled by hardware and should be
removed from the driver. The USB regulator driver has been
used for version 1.0 and 1.1 of the AB8500 which are now
obsolete.
ST-Ericsson Linux next: -
ST-Ericsson ID: ER 327257
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I47165e58c1d2fefcc92cc36fc22f6f2e8b7b3716
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18907
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: ER 326455
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I3ece72ed3a9087a37ede174c7af199956adac0d9
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18848
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Tested-by: David PARIS <david.paris-nonst@stericsson.com>
|
|
Suspend force of Vsmps1 and Vsmps2 is not needed as
these regulators are already initialized to the same
value.
Change-Id: I793281b13a4153f02463445cae5ebb39930c0609
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18490
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Vrf1 regulator is put in HW control at initialization.
Forcing this regulator to HW control in suspend is
removed.
Change-Id: I78e37f85d20ebfb24d23b2d3a7af24202951e6c7
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18489
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Vaux1, Vaux2, Vaux3, Vana, Vamic1, Vamic2, Vdmic and Vaudio are
controlled by the ARM and should not need to be forced off, so
this is removed.
Change-Id: I72164aacdba55c64864293feb843a5457dc3bed0
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18364
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: Emeric VIGIER <emeric.vigier@stericsson.com>
|
|
This will (together with patches for SOC-settings and
ISSW) make the suspend-force-v5x function enabled by
default on all platforms from v5x and onwards.
ST-Ericsson Id: -
Change-Id: I87c325a2b6212b4252966da1123d76e671b2e3c0
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18110
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Change-Id: I65fb79ad78680d575cfe52b55f1ab98e441b0b0c
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17878
Reviewed-by: Emeric VIGIER <emeric.vigier@stericsson.com>
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
remove VBB from suspend hack and add correct init values
Change-Id: Iff1ef8c77077f07e60667aed68f348b89014db71
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17802
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
Change-Id: Ieeef92f33ea8ae3fe37ded8365755ee961833e1d
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17868
Reviewed-by: Emeric VIGIER <emeric.vigier@stericsson.com>
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
Change-Id: Ia22a362ae01394dbe8cfd5f822c4ec51910f8d62
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17867
Reviewed-by: Emeric VIGIER <emeric.vigier@stericsson.com>
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
With this patch it always reboots or freeze when
Lauterbach is connected, until that is solved this
patch will be reverted.
This reverts commit b58bbc0ca8a76f079fcb9abc68b76dc55797d4d1.
Conflicts:
arch/arm/mach-ux500/board-mop500-regulators.c
drivers/regulator/ab8500.c
Change-Id: Icb4d095ddb6a1fa479265015695140fd82e13a64
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17697
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: -
Change-Id: I6b97c355d66a836b9f2465c289588c4741516720
Signed-off-by: Alexandre Torgue <alexandre.torgue@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16960
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Etienne CARRIERE <etienne.carriere@stericsson.com>
Reviewed-by: Emeric VIGIER <emeric.vigier@stericsson.com>
Tested-by: Emeric VIGIER <emeric.vigier@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Set VPll in HW ctrl by SysclkReq1 with HP/LP mode
Change-Id: I852ec045b895a3c4531b90f7f9343cbb6a125d6a
Signed-off-by: David Paris <david.paris-nonst@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16959
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Tested-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Disable bodybiasing, change Vsmpsext4, Vaux1 and Vpll configs
Change-Id: I17defafcf8813b483e80d4db1aac7ce26b868d5a
Signed-off-by: Alexandre Torgue <alexandre.torgue@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16958
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Tested-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Change-Id: Iccb7ee4f75d1790a80604b70366c7adca1b212d6
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17245
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
|
|
Change-Id: I026b26018d89b4083202c237e41ae8d7c4a9b49e
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17062
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
Reviewed-by: QATOOLS
|
|
Some definitions used for reading out the board profile
from backup RAM are moved outside of #ifdef CONFIG_PM.
Change-Id: Idf01b5e11c13711807f3e8bc81c1b6bf9c032898
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17061
Reviewed-by: QATOOLS
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
VextSupply3 is forced off instead of HW control from sysclkreq1.
Change-Id: I77dd7ace1eff3591c237ce4a4c258dcb0a7ebf00
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17060
Reviewed-by: QATOOLS
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: If9c5fb4e0ea4e2313b9aeb8a9403fe1d0d9a6bc2
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16340
Reviewed-by: Martin KLITTE <martin.klitte@stericsson.com>
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
|
|
Initialization added for regulators Vana, VextSupply1,
VextSupply2, VextSupply3, Vaux1, Vaux2, Vaux3, VTVout,
Vintcore12, Vaudio, Vdmic, Vamic1, Vamic2, VrefDDR.
Change-Id: I97ab3a880eeea28c04dca81769546fda71597994
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12974
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
unset
ST-Ericsson ID: -
Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com>
Change-Id: Ib2730e46dc271193349feb247f0d63493df7e848
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14067
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
More settings are forced in suspend to save power. This
is a temporary solution and most forced settings will be
removed from this module when proper initialization has
been implemented.
ST-Ericsson Linux next: Not to be mainlined
ST-Ericsson ID: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic39bef89b75fbb9e8234519513c4ce665bb01b17
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13116
Reviewed-by: QATOOLS
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Updates the debugfs regulator settings to minimize power consumption
on the external regulators on v2_v5x hardware. This is used to
optimize power consumption when using suspend/resume.
ST-Ericsson Linux next: I leave this to the MKR
ST-Ericsson ID:
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ied7b1e0084598d3b6e8efc3f90f85503608991c0
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12815
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: QATOOLS
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
AB8500 v1.0 support is removed from the driver and names
are updated to be consistent. The regulator id checks are
replaced with checks for NULL info pointer. Macros are
replaced in the driver. The define for number of
regulators is moved from ab8500-core to ab8500-regulator,
number of regulators is instead added as a field in the
board configuration.
Some regulators are fixed and do not have the capability to
change voltage. The constraints in the regulator board
configuration are updated to reflect this.
Change-Id: I3527cbd07789255eb06b4ac9bf50578526b5696f
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12542
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
This patch adds the possibility to force extsupply1 (controls
extsmps1) off and extsupply3 (controls extsmps3 and extsmps4)
to hw control during suspend. The purpose is to save power.
The original regulator setting is read during suspend and
restored in resume.
This functionality is default off but can be enabled through
debugfs.
ST-Ericsson Id: ER281086
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Change-Id: Id7b88d5afbe9387ce26c87e0df70198634008644
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11153
Tested-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Supply regulators are disabled only when the last
reference count is removed on the child regulator
(the use count goes from 1 to 0). This patch changes
the behaviour of enable so the supply regulator is
enabled only when the use count of the child
regulator goes from 0 to 1
Change-Id: Ic322801119fefaabc1ed4fef248e463e67fb1857
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8153
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Reviewed-by: Marta LOFSTEDT <marta.lofstedt@stericsson.com>
|
|
This patch fix a regulator unbalance bug when using
an hirarchy of regulators. This bug was introduced with the
deadlock patch.
Change-Id: I94426a4095fcfde86891a66631ecae875cc59fa0
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7517
Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Tested-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
I have a regulator A that sets regulator B as its supply. When I call
set_supply to add B as the supply for A, regulator A gets added to the
supply_list for regulator B.
When I call regulator_disable(A), I end up with a call chain like this:
regulator_disable(A)
> mutex_lock(A)
> _regulator_disable(A)
>> _regulator_disable(B)
>>> _notifier_call_chain(B)
>>>> mutex_lock(A)
Which results in dead lock since we are trying to acquire the mutex lock
for regulator A which we already hold.
This patch addresses this issue by moving the call to disable regulator
B outside of the lock aquired inside the initial call to
regulator_disable.
This change also addresses the issue of not acquiring the mutex for
regulator B before calling _regulator_disable(B).
Change-Id: I4b1eb64f13da7c3cb77d5bc37d2a98e435541be9
Signed-off-by: Jeffrey Carlyle <jeff.carlyle@motorola.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7354
Tested-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
For v1 and for AUX3 desc.n_voltages is now set correctly.
Change-Id: Ifd901c3814d59c778dd0b4a84157f8f56a367533
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7221
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: Daniel WILLERUD <daniel.willerud@stericsson.com>
|
|
Change-Id: I0030e72cada2ca05b2cd9554486cab4a7cb77d52
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6922
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
To locate the consumer(s) that currently holds
(ie have enabled) a regulator, a new sysfs entry
is created. The consumer(s) are published in
/sys/class/regulator/regulator.<#>/use
Signed-off-by: Martin Persson <martin.persson@stericsson.com>
Change-Id: Ief78276c9685d0bf5688294b9aed9e0698c3475f
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6549
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
Also added bugfixes, USB regulator, AB8500v2 support, U8500v1.0
support and verbose debug.
MMC driver patched to support voltage levels for both AB8500v1
(AUX3 2.9 V) and AB8500v2 (AUX3 2.91 V).
ST-Ericsson Id: AP 271209
Change-Id: I20b8dd846a5b29cf12e190e0f3f03aed0a034f41
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4940
Reviewed-by: Martin PERSSON <martin.persson@stericsson.com>
|
|
Implementation of the battery manager for AB8500 with a
verified charging algorithm. The algorithm is implemented as
a state machine and battery safety is considered in the
algorithm. Battery temperature charging ranges implemented
as a part of the safety mechanism.
A delay added in the GPADC driver to stabilize VTVout for
biasing the battery temp thermistor.
ST-Ericsson ID: WP271416
Change-Id: Ide28ea26d03056e96ed5e732de8114062da2b577
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Signed-off-by: Karl Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5594
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
This patch makes the ab8500 mixed signal chip expose the same
interface for register access as the ab3100, ab3550 and ab5500 chip.
The ab8500_read() and ab8500_write() is removed and replaced with
abx500_get_register_interruptible() and
abx500_set_register_interruptible().
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|
|
error path
In current implementation, ab8500_regulator_info[0].regulator is not
unregistered if the error happen at i > 0.
This patch fixes the resource leak and also improves the readability.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
|
error path
In current implementation, ab3100_regulators[0].rdev is not unregistered if
the error happen at i > 0.
This patch fixes the resource leak and also improves the readability.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
|
Hi Mark,
> I think that's everything.
Please find the updated patch set as below.
>From f4bf7eec4d210db5075c0bce4521d9be6bc76c8c Mon Sep 17 00:00:00 2001
From: Sundar R Iyer <sundar.iyer@stericsson.com>
Date: Sun, 6 Jun 2010 19:12:12 +0530
Subject: [PATCH v3 1/2] regulator: add support for regulators on the ab8500 MFD
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
|
commit c4604e49c1a5832a58789a22eba7ca982933e1be upstream.
This ensures that if the GPIO was not enabled prior to the driver
starting the regulator API will insert the required powerup ramp
delay when it enables the regulator. The gpiolib API does not
provide this information.
[Rewrote changelog to describe the actual change -- broonie.]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
|
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>
|
|
In the case of platform_device_add() fail, we should call
platform_device_put() instead of platform_device_del()
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
|
We use voltage selector as an array index for typ_voltages.
Thus the valid range for voltage selector should be 0..voltages_len-1.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
|
I2C drivers can use the clientdata-pointer to point to private data. As I2C
devices are not really unregistered, but merely detached from their driver, it
used to be the drivers obligation to clear this pointer during remove() or a
failed probe(). As a couple of drivers forgot to do this, it was agreed that it
was cleaner if the i2c-core does this clearance when appropriate, as there is
no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
This feature was added to the core with commit
e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.
As there is no need anymore to clear the clientdata-pointer, remove all current
occurrences in the drivers to simplify the code and prevent confusion.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
|
|
The interface for the AB3100 is changed to make way for the
ABX500 family of chips: AB3550, AB5500 and future ST-Ericsson
Analog Baseband chips. The register access functions are moved
out to a separate struct abx500_ops. In this way the interface
is moved from the implementation and the sub functionality drivers
can keep their interface intact when chip infrastructure and
communication mechanisms changes. We also define the AB3550
device IDs and the AB3550 platform data struct and convert
the catenated 32bit event to an array of 3 x 8bits.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|
|
The goal here is to make way for a more general interface for the
analog baseband chips ab3100 ab3550 ab550 and future chips.
This patch have been divided into two parts since both changing name
and content of a file is not recommended in git.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|