| * Texas Instruments, <www.ti.com> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #ifndef __POWER_TPS65218_H__ |
| #define __POWER_TPS65218_H__ |
| #define TPS65218_CHIP_PM 0x24 |
| TPS65218_PASSWORD = 0x10, |
| TPS65218_PMIC_NUM_OF_REGS, |
| #define TPS65218_PROT_LEVEL_NONE 0x00 |
| #define TPS65218_PROT_LEVEL_1 0x01 |
| #define TPS65218_PROT_LEVEL_2 0x02 |
| #define TPS65218_PASSWORD_LOCK_FOR_WRITE 0x00 |
| #define TPS65218_PASSWORD_UNLOCK 0x7D |
| #define TPS65218_DCDC_GO 0x80 |
| #define TPS65218_MASK_ALL_BITS 0xFF |
| #define TPS65218_DCDC_VOLT_SEL_1100MV 0x19 |
| #define TPS65218_DCDC_VOLT_SEL_1330MV 0x30 |
| int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, |
| int tps65218_voltage_update(uchar dc_cntrl_reg, uchar volt_sel); |
| int power_tps65218_init(unsigned char bus); |
| #endif /* __POWER_TPS65218_H__ */ |