diff options
| author | Henry Chen <henryc.chen@mediatek.com> | 2015-07-24 01:24:41 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-07-24 07:30:49 -0400 |
| commit | 8766018b6ef73ca124d13b0d0a06dec906726cc8 (patch) | |
| tree | 38d7d5d50a60c868fd6e8ba9577b812599b84edc /include/linux/regulator | |
| parent | 678cdb2fbd7e44b8905a8f4e770c694eb77f0395 (diff) | |
regulator: mt6311: Add support for mt6311 regulator
Add regulator support for mt6311.
It has 2 regulaotrs - Buck and LDO, provide the related buck/ldo voltage
data to the driver, and creates the regulator_desc table. Supported
operations for Buck are enabled/disabled and voltage change, only
enabled/disabled for LDO.
Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/mt6311.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/regulator/mt6311.h b/include/linux/regulator/mt6311.h new file mode 100644 index 000000000000..8473259395b6 --- /dev/null +++ b/include/linux/regulator/mt6311.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2015 MediaTek Inc. | ||
| 3 | * Author: Henry Chen <henryc.chen@mediatek.com> | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef __LINUX_REGULATOR_MT6311_H | ||
| 16 | #define __LINUX_REGULATOR_MT6311_H | ||
| 17 | |||
| 18 | #define MT6311_MAX_REGULATORS 2 | ||
| 19 | |||
| 20 | enum { | ||
| 21 | MT6311_ID_VDVFS = 0, | ||
| 22 | MT6311_ID_VBIASN, | ||
| 23 | }; | ||
| 24 | |||
| 25 | #define MT6311_E1_CID_CODE 0x10 | ||
| 26 | #define MT6311_E2_CID_CODE 0x20 | ||
| 27 | #define MT6311_E3_CID_CODE 0x30 | ||
| 28 | |||
| 29 | #endif /* __LINUX_REGULATOR_MT6311_H */ | ||
