diff options
author | Suriyan Ramasami <suriyan.r@gmail.com> | 2014-10-29 19:22:41 +0300 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-11-17 13:33:21 +0300 |
commit | 7e46be8aed6cd9ca4107d0b49d0fdfe42beea033 (patch) | |
tree | 39fba05d8d4cd222ba015c041d823bf4e1ba2faa /include/power | |
parent | 7e2e04fe99e8fe7806d0105e2b2522b56da3d4df (diff) | |
download | u-boot-7e46be8aed6cd9ca4107d0b49d0fdfe42beea033.tar.xz |
arm: odroid: pmic77686: allow buck voltage settings
Allow to set the buck voltage for the max77686.
This will be used to reset the SMC LAN9730 ethernet on the odroids.
Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/power')
-rw-r--r-- | include/power/max77686_pmic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/power/max77686_pmic.h b/include/power/max77686_pmic.h index c2a772a895..b0e42550a2 100644 --- a/include/power/max77686_pmic.h +++ b/include/power/max77686_pmic.h @@ -150,6 +150,7 @@ enum { 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_voltage(struct pmic *p, int buck, ulong uV); int max77686_set_buck_mode(struct pmic *p, int buck, char opmode); #define MAX77686_LDO_VOLT_MAX_HEX 0x3f @@ -159,6 +160,8 @@ int max77686_set_buck_mode(struct pmic *p, int buck, char opmode); #define MAX77686_LDO_MODE_STANDBY (0x01 << 0x06) #define MAX77686_LDO_MODE_LPM (0x02 << 0x06) #define MAX77686_LDO_MODE_ON (0x03 << 0x06) +#define MAX77686_BUCK_VOLT_MAX_HEX 0x3f +#define MAX77686_BUCK_VOLT_MASK 0x3f #define MAX77686_BUCK_MODE_MASK 0x03 #define MAX77686_BUCK_MODE_SHIFT_1 0x00 #define MAX77686_BUCK_MODE_SHIFT_2 0x04 |