xref: /openbmc/u-boot/include/power/battery.h (revision 57efeb04)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  *  Copyright (C) 2012 Samsung Electronics
4  *  Lukasz Majewski <l.majewski@samsung.com>
5  */
6 
7 #ifndef __POWER_BATTERY_H_
8 #define __POWER_BATTERY_H_
9 
10 struct battery {
11 	unsigned int version;
12 	unsigned int state_of_chrg;
13 	unsigned int time_to_empty;
14 	unsigned int capacity;
15 	unsigned int voltage_uV;
16 
17 	unsigned int state;
18 };
19 
20 int power_bat_init(unsigned char bus);
21 #endif /* __POWER_BATTERY_H_ */
22