3 * Texas Instruments, <www.ti.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __POWER_TPS65218_H__
9 #define __POWER_TPS65218_H__
11 /* I2C chip address */
12 #define TPS65218_CHIP_PM 0x24
16 TPS65218_CHIPID = 0x00,
24 TPS65218_PASSWORD = 0x10,
43 TPS65218_PMIC_NUM_OF_REGS,
46 #define TPS65218_PROT_LEVEL_NONE 0x00
47 #define TPS65218_PROT_LEVEL_1 0x01
48 #define TPS65218_PROT_LEVEL_2 0x02
50 #define TPS65218_PASSWORD_LOCK_FOR_WRITE 0x00
51 #define TPS65218_PASSWORD_UNLOCK 0x7D
53 #define TPS65218_DCDC_GO 0x80
55 #define TPS65218_MASK_ALL_BITS 0xFF
57 #define TPS65218_DCDC_VOLT_SEL_1100MV 0x19
58 #define TPS65218_DCDC_VOLT_SEL_1330MV 0x30
60 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val,
62 int tps65218_voltage_update(uchar dc_cntrl_reg, uchar volt_sel);
63 #endif /* __POWER_TPS65218_H__ */