aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorChen Zhong <chen.zhong@mediatek.com>2016-07-18 08:40:51 -0400
committerMark Brown <broonie@kernel.org>2016-07-18 08:46:23 -0400
commit2fdf829236183e5be559a2b4d13c29926b79b2d4 (patch)
tree52b0003d2d1e0202585dbf0af7573012958b94cc /include/linux/regulator
parentd236b3ee5bb13f53ed60ccc6f704a13b923d2952 (diff)
regulator: mt6323: Add support for MT6323 regulator
The MT6323 is a regulator found on boards based on MediaTek MT7623 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Chen Zhong <chen.zhong@mediatek.com> Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/mt6323-regulator.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/linux/regulator/mt6323-regulator.h b/include/linux/regulator/mt6323-regulator.h
new file mode 100644
index 000000000000..67011cd1ce55
--- /dev/null
+++ b/include/linux/regulator/mt6323-regulator.h
@@ -0,0 +1,52 @@
1/*
2 * Copyright (c) 2016 MediaTek Inc.
3 * Author: Chen Zhong <chen.zhong@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_MT6323_H
16#define __LINUX_REGULATOR_MT6323_H
17
18enum {
19 MT6323_ID_VPROC = 0,
20 MT6323_ID_VSYS,
21 MT6323_ID_VPA,
22 MT6323_ID_VTCXO,
23 MT6323_ID_VCN28,
24 MT6323_ID_VCN33_BT,
25 MT6323_ID_VCN33_WIFI,
26 MT6323_ID_VA,
27 MT6323_ID_VCAMA,
28 MT6323_ID_VIO28 = 9,
29 MT6323_ID_VUSB,
30 MT6323_ID_VMC,
31 MT6323_ID_VMCH,
32 MT6323_ID_VEMC3V3,
33 MT6323_ID_VGP1,
34 MT6323_ID_VGP2,
35 MT6323_ID_VGP3,
36 MT6323_ID_VCN18,
37 MT6323_ID_VSIM1,
38 MT6323_ID_VSIM2,
39 MT6323_ID_VRTC,
40 MT6323_ID_VCAMAF,
41 MT6323_ID_VIBR,
42 MT6323_ID_VRF18,
43 MT6323_ID_VM,
44 MT6323_ID_VIO18,
45 MT6323_ID_VCAMD,
46 MT6323_ID_VCAMIO,
47 MT6323_ID_RG_MAX,
48};
49
50#define MT6323_MAX_REGULATOR MT6323_ID_RG_MAX
51
52#endif /* __LINUX_REGULATOR_MT6323_H */