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