]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/power/battery.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / include / power / battery.h
CommitLineData
bd8479e8
ŁM
1/*
2 * Copyright (C) 2012 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
bd8479e8
ŁM
6 */
7
8#ifndef __POWER_BATTERY_H_
9#define __POWER_BATTERY_H_
10
11struct 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
21int power_bat_init(unsigned char bus);
22#endif /* __POWER_BATTERY_H_ */