]> Git Repo - u-boot.git/blob - include/power/battery.h
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
[u-boot.git] / include / power / battery.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  *  Copyright (C) 2012 Samsung Electronics
4  *  Lukasz Majewski <[email protected]>
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_ */
This page took 0.028249 seconds and 4 git commands to generate.