07 Apr, 2017
2 commits
-
Add a helper function regulator_set_pull_down_regmap to allow regmap
based regulators to easily enable pull down.Signed-off-by: Charles Keepax
Signed-off-by: Mark Brown -
Add a helper function regulator_set_soft_start_regmap to allow regmap
based regulators to easily enable soft start.Signed-off-by: Charles Keepax
Signed-off-by: Mark Brown
11 Nov, 2016
1 commit
-
The handling of bypass_val_on that was added in
regulator_get_bypass_regmap is done unconditionally however
several drivers don't define a value for bypass_val_on. This
results in those drivers reporting bypass being enabled when
it is not. In regulator_set_bypass_regmap we use bypass_mask
if bypass_val_on is zero. This patch adds similar handling in
regulator_get_bypass_regmap.Fixes: commit dd1a571daee7 ("regulator: helpers: Ensure bypass register field matches ON value")
Signed-off-by: Charles Keepax
Signed-off-by: Mark Brown
22 Apr, 2016
1 commit
-
When checking bypass state for a regulator, we check to see if any bits
in the bypass mask are set. For most cases this is fine because there is
typically, only a single bit used to determine if the regulator is in
bypass. However, for some regulators, such as LDO6 on AS3722, the bypass
state is indicate by a value rather than a single bit. Therefore, when
checking the bypass state, check that the bypass field matches the ON
value.Signed-off-by: Jon Hunter
Signed-off-by: Mark Brown
02 Mar, 2016
1 commit
-
Add helper function to set the state of active-discharge of
regulator using regmap. The HW regulator driver can directly
use this by providing the necessary information in the regulator
descriptor.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
19 Apr, 2015
1 commit
-
The function name in kernel-doc for regulator_map_voltage_linear_range()
was wrong.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Mark Brown
06 Mar, 2014
1 commit
-
This patch extends the regulator helpers to account for device that use
multiple bits for control when using regmap enable/disable/bypass ops.The actual regulator helpers wrongly assume that the regulator control
is always performed using single bits, using in the regulator_desc
struct only two parameters *_reg and *_mask defining register and mask
for control.This patch extends this struct and introduces the helpers to take into
account devices where control is performed using multiple bits and
specific multi-bit values are used for enabling/disabling/bypassing the
regulator.Signed-off-by: Carlo Caione
Signed-off-by: Mark Brown
11 Oct, 2013
1 commit
-
linear ranges means each range has linear voltage settings.
So we can calculate max_uV for each linear range in regulator core rather than
set the max_uV field in drivers.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
09 Aug, 2013
1 commit
-
Move regulator_list_voltage_{linear,linear_range,table} helper functions to
helpers.c.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
07 Aug, 2013
1 commit
-
Reduce the size of core.c a bit.
Signed-off-by: Mark Brown