mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 11:01:56 +07:00
a912e80bd0
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 675 mass ave cambridge ma 02139 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 35 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.655028468@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
765 B
C
31 lines
765 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Dumb driver for LiIon batteries using TWL4030 madc.
|
|
*
|
|
* Copyright 2013 Golden Delicious Computers
|
|
* Nikolaus Schaller <hns@goldelico.com>
|
|
*/
|
|
|
|
#ifndef __TWL4030_MADC_BATTERY_H
|
|
#define __TWL4030_MADC_BATTERY_H
|
|
|
|
/*
|
|
* Usually we can assume 100% @ 4.15V and 0% @ 3.3V but curves differ for
|
|
* charging and discharging!
|
|
*/
|
|
|
|
struct twl4030_madc_bat_calibration {
|
|
short voltage; /* in mV - specify -1 for end of list */
|
|
short level; /* in percent (0 .. 100%) */
|
|
};
|
|
|
|
struct twl4030_madc_bat_platform_data {
|
|
unsigned int capacity; /* total capacity in uAh */
|
|
struct twl4030_madc_bat_calibration *charging;
|
|
int charging_size;
|
|
struct twl4030_madc_bat_calibration *discharging;
|
|
int discharging_size;
|
|
};
|
|
|
|
#endif
|