diff options
Diffstat (limited to 'board/llama/battery.c')
-rw-r--r-- | board/llama/battery.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/llama/battery.c b/board/llama/battery.c new file mode 100644 index 0000000000..a7d46e33c3 --- /dev/null +++ b/board/llama/battery.c @@ -0,0 +1,22 @@ +#include "battery.h" + +static const struct battery_info info = { + .voltage_max = 8700, + .voltage_normal = 7600, + .voltage_min = 6000, + + /* Pre-charge values. */ + .precharge_current = 256, /* mA */ + + .start_charging_min_c = 0, + .start_charging_max_c = 45, + .charging_min_c = 0, + .charging_max_c = 45, + .discharging_min_c = -10, + .discharging_max_c = 60, +}; + +const struct battery_info *battery_get_info(void) +{ + return &info; +} |