lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /* |
| 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 | |
| 20 | int zx234502_boost_flag(int *boost_flag); |
| 21 | int zx234502_battery_status(int *bat_state); |
| 22 | int zx234502_charger_enable(void); |
| 23 | |
| 24 | #endif /* __ZX234502_H__ */ |