diff options
author | Tom Rini <trini@ti.com> | 2015-01-15 14:05:31 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-16 10:25:01 -0500 |
commit | ab77f24119e80257de4ab017b877f92f96980562 (patch) | |
tree | b541a8bda045a603f90ab55dae02812e1edb2e51 /include/power | |
parent | d928664f4101e24128c879956d1aa7c76509ea6a (diff) | |
parent | fa58b102cd8f5345cbc28657600c3a28acfbd80e (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-ti
Diffstat (limited to 'include/power')
-rw-r--r-- | include/power/tps62362.h | 29 | ||||
-rw-r--r-- | include/power/tps65218.h | 3 |
2 files changed, 32 insertions, 0 deletions
diff --git a/include/power/tps62362.h b/include/power/tps62362.h new file mode 100644 index 0000000000..720c338722 --- /dev/null +++ b/include/power/tps62362.h @@ -0,0 +1,29 @@ +/* + * (C) Copyright 2014 Texas Instruments Incorporated - http://www.ti.com + * Author: Felipe Balbi <balbi@ti.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __POWER_TPS62362_H__ +#define __POWER_TPS62362_H__ + +/* I2C chip address */ +#define TPS62362_I2C_ADDR 0x60 + +/* Registers */ +#define TPS62362_SET0 0x00 +#define TPS62362_SET1 0x01 +#define TPS62362_SET2 0x02 +#define TPS62362_SET3 0x03 +#define TPS62362_NUM_REGS 4 + +#define TPS62362_DCDC_VOLT_SEL_0950MV 0x12 +#define TPS62362_DCDC_VOLT_SEL_1100MV 0x21 +#define TPS62362_DCDC_VOLT_SEL_1200MV 0x2b +#define TPS62362_DCDC_VOLT_SEL_1260MV 0x31 +#define TPS62362_DCDC_VOLT_SEL_1330MV 0x38 + +int tps62362_voltage_update(unsigned char reg, unsigned char volt_sel); +int power_tps62362_init(unsigned char bus); +#endif /* __POWER_TPS62362_H__ */ diff --git a/include/power/tps65218.h b/include/power/tps65218.h index f8f33b8b16..63fc7b343f 100644 --- a/include/power/tps65218.h +++ b/include/power/tps65218.h @@ -54,7 +54,10 @@ enum { #define TPS65218_MASK_ALL_BITS 0xFF +#define TPS65218_DCDC_VOLT_SEL_0950MV 0x0a #define TPS65218_DCDC_VOLT_SEL_1100MV 0x19 +#define TPS65218_DCDC_VOLT_SEL_1200MV 0x23 +#define TPS65218_DCDC_VOLT_SEL_1260MV 0x29 #define TPS65218_DCDC_VOLT_SEL_1330MV 0x30 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, |