diff options
| author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2017-03-28 10:14:41 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2017-04-06 14:29:37 -0400 |
| commit | f7d37bc3cb20828ac43b22cbd40222877ee2c46a (patch) | |
| tree | fc8925fad5871c81f776ed6b58cbfe729abdf681 /include/linux | |
| parent | a7a453f56a1a116027f84ac53b365eb045a0e279 (diff) | |
regulator: helpers: Add regmap set_pull_down helper
Add a helper function regulator_set_pull_down_regmap to allow regmap
based regulators to easily enable pull down.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/driver.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 1054c033e783..8a9078dd2a5f 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -296,6 +296,10 @@ enum regulator_type { | |||
| 296 | * @soft_start_mask: Mask for control when using regmap set_soft_start | 296 | * @soft_start_mask: Mask for control when using regmap set_soft_start |
| 297 | * @soft_start_val_on: Enabling value for control when using regmap | 297 | * @soft_start_val_on: Enabling value for control when using regmap |
| 298 | * set_soft_start | 298 | * set_soft_start |
| 299 | * @pull_down_reg: Register for control when using regmap set_pull_down | ||
| 300 | * @pull_down_mask: Mask for control when using regmap set_pull_down | ||
| 301 | * @pull_down_val_on: Enabling value for control when using regmap | ||
| 302 | * set_pull_down | ||
| 299 | * | 303 | * |
| 300 | * @enable_time: Time taken for initial enable of regulator (in uS). | 304 | * @enable_time: Time taken for initial enable of regulator (in uS). |
| 301 | * @off_on_delay: guard time (in uS), before re-enabling a regulator | 305 | * @off_on_delay: guard time (in uS), before re-enabling a regulator |
| @@ -352,6 +356,9 @@ struct regulator_desc { | |||
| 352 | unsigned int soft_start_reg; | 356 | unsigned int soft_start_reg; |
| 353 | unsigned int soft_start_mask; | 357 | unsigned int soft_start_mask; |
| 354 | unsigned int soft_start_val_on; | 358 | unsigned int soft_start_val_on; |
| 359 | unsigned int pull_down_reg; | ||
| 360 | unsigned int pull_down_mask; | ||
| 361 | unsigned int pull_down_val_on; | ||
| 355 | 362 | ||
| 356 | unsigned int enable_time; | 363 | unsigned int enable_time; |
| 357 | 364 | ||
| @@ -484,6 +491,7 @@ int regulator_set_voltage_time_sel(struct regulator_dev *rdev, | |||
| 484 | int regulator_set_bypass_regmap(struct regulator_dev *rdev, bool enable); | 491 | int regulator_set_bypass_regmap(struct regulator_dev *rdev, bool enable); |
| 485 | int regulator_get_bypass_regmap(struct regulator_dev *rdev, bool *enable); | 492 | int regulator_get_bypass_regmap(struct regulator_dev *rdev, bool *enable); |
| 486 | int regulator_set_soft_start_regmap(struct regulator_dev *rdev); | 493 | int regulator_set_soft_start_regmap(struct regulator_dev *rdev); |
| 494 | int regulator_set_pull_down_regmap(struct regulator_dev *rdev); | ||
| 487 | 495 | ||
| 488 | int regulator_set_active_discharge_regmap(struct regulator_dev *rdev, | 496 | int regulator_set_active_discharge_regmap(struct regulator_dev *rdev, |
| 489 | bool enable); | 497 | bool enable); |
