summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2016-12-09 08:08:58 (GMT)
committerYork Sun <york.sun@nxp.com>2017-01-18 17:28:57 (GMT)
commit4394ad1227e5752b13fefa99846cb7073f4dd42b (patch)
treeb6deb2fbee3649f955a2129dc8c39dfcb49a402e /include/power
parent762161b04ade62be5c708ff167f5fdde2e61fa9c (diff)
downloadu-boot-4394ad1227e5752b13fefa99846cb7073f4dd42b.tar.xz
pmic: pmic_mc34vr500: Add APIs to set/get SWx volt
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/mc34vr500_pmic.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/power/mc34vr500_pmic.h b/include/power/mc34vr500_pmic.h
index df4985a..b0b143a 100644
--- a/include/power/mc34vr500_pmic.h
+++ b/include/power/mc34vr500_pmic.h
@@ -162,5 +162,14 @@ enum {
#define APS_PFM 0xc
#define PWM_PFM 0xd
+enum swx {
+ SW1 = 0,
+ SW2,
+ SW3,
+ SW4,
+};
+
+int mc34vr500_get_sw_volt(uint8_t sw);
+int mc34vr500_set_sw_volt(uint8_t sw, int sw_volt);
int power_mc34vr500_init(unsigned char bus);
#endif /* __MC34VR500_PMIC_H_ */