summaryrefslogtreecommitdiff
path: root/include/power/max77686_pmic.h
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-09-11 09:59:27 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-09-11 09:59:27 +0200
commit5480ac32171ab0e38c48c9f585fa650c7867f6a1 (patch)
tree6672a47e3675e7e79fd0fbf9b491045230b24eed /include/power/max77686_pmic.h
parent68e1747f9c0506159e8ecc9a4feb58e9c65a7b39 (diff)
parent5c18a1cf3e56e0177388258696be4a17a672e9d0 (diff)
downloadu-boot-imx-5480ac32171ab0e38c48c9f585fa650c7867f6a1.zip
u-boot-imx-5480ac32171ab0e38c48c9f585fa650c7867f6a1.tar.gz
u-boot-imx-5480ac32171ab0e38c48c9f585fa650c7867f6a1.tar.bz2
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
Conflicts: tools/Makefile
Diffstat (limited to 'include/power/max77686_pmic.h')
-rw-r--r--include/power/max77686_pmic.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/power/max77686_pmic.h b/include/power/max77686_pmic.h
index 91b7ba7..c98db1b 100644
--- a/include/power/max77686_pmic.h
+++ b/include/power/max77686_pmic.h
@@ -139,6 +139,32 @@ enum {
EN_LDO = (0x3 << 6),
};
+enum {
+ OPMODE_OFF = 0,
+ OPMODE_STANDBY,
+ OPMODE_LPM,
+ OPMODE_ON,
+};
+
+int max77686_set_ldo_voltage(struct pmic *p, int ldo, ulong uV);
+int max77686_set_ldo_mode(struct pmic *p, int ldo, char opmode);
+int max77686_set_buck_mode(struct pmic *p, int buck, char opmode);
+
+#define MAX77686_LDO_VOLT_MAX_HEX 0x3f
+#define MAX77686_LDO_VOLT_MASK 0x3f
+#define MAX77686_LDO_MODE_MASK 0xc0
+#define MAX77686_LDO_MODE_OFF (0x00 << 0x06)
+#define MAX77686_LDO_MODE_STANDBY (0x01 << 0x06)
+#define MAX77686_LDO_MODE_LPM (0x02 << 0x06)
+#define MAX77686_LDO_MODE_ON (0x03 << 0x06)
+#define MAX77686_BUCK_MODE_MASK 0x03
+#define MAX77686_BUCK_MODE_SHIFT_1 0x00
+#define MAX77686_BUCK_MODE_SHIFT_2 0x04
+#define MAX77686_BUCK_MODE_OFF 0x00
+#define MAX77686_BUCK_MODE_STANDBY 0x01
+#define MAX77686_BUCK_MODE_LPM 0x02
+#define MAX77686_BUCK_MODE_ON 0x03
+
/* Buck1 1 volt value */
#define MAX77686_BUCK1OUT_1V 0x5
/* Buck1 1.05 volt value */