X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fpower%2Ftps65218.h;h=4d68faacafd3bad5d04d1468b04462f7b96683f9;hb=3b593f9030bae149af9261f51933805be506f6b1;hp=67aa2f8c8d46e781c01ad4457b31df5f51b3f848;hpb=dab5e3469d294a4e1ffed8407d296a78e02cc01f;p=u-boot diff --git a/include/power/tps65218.h b/include/power/tps65218.h index 67aa2f8c8d..4d68faacaf 100644 --- a/include/power/tps65218.h +++ b/include/power/tps65218.h @@ -8,6 +8,8 @@ #ifndef __POWER_TPS65218_H__ #define __POWER_TPS65218_H__ +#include + /* I2C chip address */ #define TPS65218_CHIP_PM 0x24 @@ -54,10 +56,24 @@ 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 +#define TPS65218_CC_STAT (BIT(0) | BIT(1)) +#define TPS65218_STATE (BIT(2) | BIT(3)) +#define TPS65218_PB_STATE BIT(4) +#define TPS65218_AC_STATE BIT(5) +#define TPS65218_EE BIT(6) +#define TPS65218_FSEAL BIT(7) + +int tps65218_reg_read(uchar dest_reg, uchar *dest_val); int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, uchar mask); int tps65218_voltage_update(uchar dc_cntrl_reg, uchar volt_sel); +int tps65218_toggle_fseal(void); +int tps65218_lock_fseal(void); +int power_tps65218_init(unsigned char bus); #endif /* __POWER_TPS65218_H__ */