diff options
| author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-12-17 08:23:17 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-12-18 08:27:40 -0500 |
| commit | f37ff6b6ab9bff6f78dbfbdd123673a09e04cb7f (patch) | |
| tree | 59b2d4b70ba3d65139ba46cf2e1c989b250f60ba /include/linux/mfd | |
| parent | 463616ea3f4c4ff27019ffcf8f09a25712c1f4c1 (diff) | |
regulator: s5m8767: Add symbols for hard-coded DVS_RAMP register
Add symbols for hard-coded values of BUCK_RAMP field in DVS_RAMP
register. This simplifies a little the code as register update is called
only once.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/samsung/s5m8767.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/mfd/samsung/s5m8767.h b/include/linux/mfd/samsung/s5m8767.h index 9198377ee859..2ab0b0f03641 100644 --- a/include/linux/mfd/samsung/s5m8767.h +++ b/include/linux/mfd/samsung/s5m8767.h | |||
| @@ -186,4 +186,19 @@ enum s5m8767_regulators { | |||
| 186 | #define S5M8767_ENCTRL_SHIFT 6 | 186 | #define S5M8767_ENCTRL_SHIFT 6 |
| 187 | #define S5M8767_ENCTRL_MASK (0x3 << S5M8767_ENCTRL_SHIFT) | 187 | #define S5M8767_ENCTRL_MASK (0x3 << S5M8767_ENCTRL_SHIFT) |
| 188 | 188 | ||
| 189 | /* | ||
| 190 | * Values for BUCK_RAMP field in DVS_RAMP register, matching raw values | ||
| 191 | * in mV/us. | ||
| 192 | */ | ||
| 193 | enum s5m8767_dvs_buck_ramp_values { | ||
| 194 | S5M8767_DVS_BUCK_RAMP_5 = 0x4, | ||
| 195 | S5M8767_DVS_BUCK_RAMP_10 = 0x9, | ||
| 196 | S5M8767_DVS_BUCK_RAMP_12_5 = 0xb, | ||
| 197 | S5M8767_DVS_BUCK_RAMP_25 = 0xd, | ||
| 198 | S5M8767_DVS_BUCK_RAMP_50 = 0xe, | ||
| 199 | S5M8767_DVS_BUCK_RAMP_100 = 0xf, | ||
| 200 | }; | ||
| 201 | #define S5M8767_DVS_BUCK_RAMP_SHIFT 4 | ||
| 202 | #define S5M8767_DVS_BUCK_RAMP_MASK (0xf << S5M8767_DVS_BUCK_RAMP_SHIFT) | ||
| 203 | |||
| 189 | #endif /* __LINUX_MFD_S5M8767_H */ | 204 | #endif /* __LINUX_MFD_S5M8767_H */ |
