blob: 103910b331542f40f3410d2089a39f24ac3e2855 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * (C) Copyright 2016, ZIXC Corporation.
3 *
4 */
5
6#ifndef __ZX234502_H__
7#define __ZX234502_H__
8
9
10#define ZX234502_I2C_SLAVE_ADDR 0x13
11
12#define ZX234502_REG_PIS 0xe
13#define ZX234502_REG_PIS_POWERON_IT_MASK (1<<6)
14#define ZX234502_REG_PIS_POWERON_IT_SHIFT 6
15
16#define ZX234502_REG_CBIS 0x0C/*Charg /Battery Int Status*/
17#define ZX234502_REG_CBIS_NOBAT_MASK (1<<5)
18#define ZX234502_REG_CBIS_NOBAT_SHIFT 5
19
20int zx234502_boost_flag(int *boost_flag);
21int zx234502_battery_status(int *bat_state);
22int zx234502_charger_enable(void);
23
24#endif /* __ZX234502_H__ */