xref: /openbmc/u-boot/include/power/tps62362.h (revision 78fb6e31)
1*78fb6e31SFelipe Balbi /*
2*78fb6e31SFelipe Balbi  * (C) Copyright 2014 Texas Instruments Incorporated - http://www.ti.com
3*78fb6e31SFelipe Balbi  * Author: Felipe Balbi <balbi@ti.com>
4*78fb6e31SFelipe Balbi  *
5*78fb6e31SFelipe Balbi  * SPDX-License-Identifier:	GPL-2.0+
6*78fb6e31SFelipe Balbi  */
7*78fb6e31SFelipe Balbi 
8*78fb6e31SFelipe Balbi #ifndef __POWER_TPS62362_H__
9*78fb6e31SFelipe Balbi #define __POWER_TPS62362_H__
10*78fb6e31SFelipe Balbi 
11*78fb6e31SFelipe Balbi /* I2C chip address */
12*78fb6e31SFelipe Balbi #define TPS62362_I2C_ADDR			0x60
13*78fb6e31SFelipe Balbi 
14*78fb6e31SFelipe Balbi /* Registers */
15*78fb6e31SFelipe Balbi #define TPS62362_SET0				0x00
16*78fb6e31SFelipe Balbi #define TPS62362_SET1				0x01
17*78fb6e31SFelipe Balbi #define TPS62362_SET2				0x02
18*78fb6e31SFelipe Balbi #define TPS62362_SET3				0x03
19*78fb6e31SFelipe Balbi #define TPS62362_NUM_REGS			4
20*78fb6e31SFelipe Balbi 
21*78fb6e31SFelipe Balbi #define TPS62362_DCDC_VOLT_SEL_0950MV		0x12
22*78fb6e31SFelipe Balbi #define TPS62362_DCDC_VOLT_SEL_1100MV		0x21
23*78fb6e31SFelipe Balbi #define TPS62362_DCDC_VOLT_SEL_1200MV		0x2b
24*78fb6e31SFelipe Balbi #define TPS62362_DCDC_VOLT_SEL_1260MV		0x31
25*78fb6e31SFelipe Balbi #define TPS62362_DCDC_VOLT_SEL_1330MV		0x38
26*78fb6e31SFelipe Balbi 
27*78fb6e31SFelipe Balbi int tps62362_voltage_update(unsigned char reg, unsigned char volt_sel);
28*78fb6e31SFelipe Balbi int power_tps62362_init(unsigned char bus);
29*78fb6e31SFelipe Balbi #endif	/* __POWER_TPS62362_H__ */
30