![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * Dumb driver for LiIon batteries using TWL4030 madc. 0004 * 0005 * Copyright 2013 Golden Delicious Computers 0006 * Nikolaus Schaller <hns@goldelico.com> 0007 */ 0008 0009 #ifndef __TWL4030_MADC_BATTERY_H 0010 #define __TWL4030_MADC_BATTERY_H 0011 0012 /* 0013 * Usually we can assume 100% @ 4.15V and 0% @ 3.3V but curves differ for 0014 * charging and discharging! 0015 */ 0016 0017 struct twl4030_madc_bat_calibration { 0018 short voltage; /* in mV - specify -1 for end of list */ 0019 short level; /* in percent (0 .. 100%) */ 0020 }; 0021 0022 struct twl4030_madc_bat_platform_data { 0023 unsigned int capacity; /* total capacity in uAh */ 0024 struct twl4030_madc_bat_calibration *charging; 0025 int charging_size; 0026 struct twl4030_madc_bat_calibration *discharging; 0027 int discharging_size; 0028 }; 0029 0030 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |