diff options
| author | Mark Brown <broonie@linaro.org> | 2013-07-04 06:14:12 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-07-04 06:14:12 -0400 |
| commit | abca37cd2e12a898289f2392c1658e711005535b (patch) | |
| tree | 60453bb7fa783e86abea7b89ece8ed4aea9fe6ca /include/linux | |
| parent | 8d0509e9d6e1303acb40f53f5158fceec46e86e7 (diff) | |
| parent | 1baa3b4e06f1e03f4fbbbc3734ea3b9a7a1134ec (diff) | |
Merge remote-tracking branch 'regulator/fix/s5m8767' into regulator-linus
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/max77693-private.h | 13 | ||||
| -rw-r--r-- | include/linux/mfd/max77693.h | 18 | ||||
| -rw-r--r-- | include/linux/regulator/ab8500.h | 4 | ||||
| -rw-r--r-- | include/linux/regulator/consumer.h | 1 |
4 files changed, 32 insertions, 4 deletions
diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h index 1aa4f13cdfa6..244fb0d51589 100644 --- a/include/linux/mfd/max77693-private.h +++ b/include/linux/mfd/max77693-private.h | |||
| @@ -85,6 +85,19 @@ enum max77693_pmic_reg { | |||
| 85 | MAX77693_PMIC_REG_END, | 85 | MAX77693_PMIC_REG_END, |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | /* MAX77693 CHG_CNFG_00 register */ | ||
| 89 | #define CHG_CNFG_00_CHG_MASK 0x1 | ||
| 90 | #define CHG_CNFG_00_BUCK_MASK 0x4 | ||
| 91 | |||
| 92 | /* MAX77693 CHG_CNFG_09 Register */ | ||
| 93 | #define CHG_CNFG_09_CHGIN_ILIM_MASK 0x7F | ||
| 94 | |||
| 95 | /* MAX77693 CHG_CTRL Register */ | ||
| 96 | #define SAFEOUT_CTRL_SAFEOUT1_MASK 0x3 | ||
| 97 | #define SAFEOUT_CTRL_SAFEOUT2_MASK 0xC | ||
| 98 | #define SAFEOUT_CTRL_ENSAFEOUT1_MASK 0x40 | ||
| 99 | #define SAFEOUT_CTRL_ENSAFEOUT2_MASK 0x80 | ||
| 100 | |||
| 88 | /* Slave addr = 0x4A: MUIC */ | 101 | /* Slave addr = 0x4A: MUIC */ |
| 89 | enum max77693_muic_reg { | 102 | enum max77693_muic_reg { |
| 90 | MAX77693_MUIC_REG_ID = 0x00, | 103 | MAX77693_MUIC_REG_ID = 0x00, |
diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h index 3109a6c5c948..676f0f388992 100644 --- a/include/linux/mfd/max77693.h +++ b/include/linux/mfd/max77693.h | |||
| @@ -30,6 +30,20 @@ | |||
| 30 | #ifndef __LINUX_MFD_MAX77693_H | 30 | #ifndef __LINUX_MFD_MAX77693_H |
| 31 | #define __LINUX_MFD_MAX77693_H | 31 | #define __LINUX_MFD_MAX77693_H |
| 32 | 32 | ||
| 33 | /* MAX77686 regulator IDs */ | ||
| 34 | enum max77693_regulators { | ||
| 35 | MAX77693_ESAFEOUT1 = 0, | ||
| 36 | MAX77693_ESAFEOUT2, | ||
| 37 | MAX77693_CHARGER, | ||
| 38 | MAX77693_REG_MAX, | ||
| 39 | }; | ||
| 40 | |||
| 41 | struct max77693_regulator_data { | ||
| 42 | int id; | ||
| 43 | struct regulator_init_data *initdata; | ||
| 44 | struct device_node *of_node; | ||
| 45 | }; | ||
| 46 | |||
| 33 | struct max77693_reg_data { | 47 | struct max77693_reg_data { |
| 34 | u8 addr; | 48 | u8 addr; |
| 35 | u8 data; | 49 | u8 data; |
| @@ -52,6 +66,10 @@ struct max77693_muic_platform_data { | |||
| 52 | struct max77693_platform_data { | 66 | struct max77693_platform_data { |
| 53 | int wakeup; | 67 | int wakeup; |
| 54 | 68 | ||
| 69 | /* regulator data */ | ||
| 70 | struct max77693_regulator_data *regulators; | ||
| 71 | int num_regulators; | ||
| 72 | |||
| 55 | /* muic data */ | 73 | /* muic data */ |
| 56 | struct max77693_muic_platform_data *muic_data; | 74 | struct max77693_muic_platform_data *muic_data; |
| 57 | }; | 75 | }; |
diff --git a/include/linux/regulator/ab8500.h b/include/linux/regulator/ab8500.h index 7c5ff0c55773..75307447cef9 100644 --- a/include/linux/regulator/ab8500.h +++ b/include/linux/regulator/ab8500.h | |||
| @@ -336,8 +336,4 @@ static inline int ab8500_regulator_debug_exit(struct platform_device *pdev) | |||
| 336 | } | 336 | } |
| 337 | #endif | 337 | #endif |
| 338 | 338 | ||
| 339 | /* AB8500 external regulator functions. */ | ||
| 340 | int ab8500_ext_regulator_init(struct platform_device *pdev); | ||
| 341 | void ab8500_ext_regulator_exit(struct platform_device *pdev); | ||
| 342 | |||
| 343 | #endif | 339 | #endif |
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 145022a83085..3a76389c6aaa 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
| @@ -165,6 +165,7 @@ int regulator_count_voltages(struct regulator *regulator); | |||
| 165 | int regulator_list_voltage(struct regulator *regulator, unsigned selector); | 165 | int regulator_list_voltage(struct regulator *regulator, unsigned selector); |
| 166 | int regulator_is_supported_voltage(struct regulator *regulator, | 166 | int regulator_is_supported_voltage(struct regulator *regulator, |
| 167 | int min_uV, int max_uV); | 167 | int min_uV, int max_uV); |
| 168 | unsigned int regulator_get_linear_step(struct regulator *regulator); | ||
| 168 | int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); | 169 | int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); |
| 169 | int regulator_set_voltage_time(struct regulator *regulator, | 170 | int regulator_set_voltage_time(struct regulator *regulator, |
| 170 | int old_uV, int new_uV); | 171 | int old_uV, int new_uV); |
