aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/intel_mdf_battery.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned Nested LockingRamakrishna Pallala2010-12-091-22/+29
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Charger Type SupportRamakrishna Pallala2010-12-091-0/+10
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Emergency Call Charging FixRamakrishna Pallala2010-12-091-11/+17
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for SW Charge TerminationRamakrishna Pallala2010-12-091-36/+189
| | | | | | | | | | Check_charge_full function is added to determine the charge full condition. Added a function calculate the charge cycles. Temperature based charging worker is modified according to support SW charge termination and maintenance charging. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for Fuel GaugingRamakrishna Pallala2010-12-091-6/+190
| | | | | | | | | | To support fuel gauging Energy now, Energy full, charge counter and capacity level Sysfs Interfaces are added to driver. A table is added to look up voltage against charge. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for status monitoringRamakrishna Pallala2010-12-091-85/+163
| | | | | | | | | | | Added a worker function to monitor status if any fault conditions like Over Voltage, Over Temperature, etc.. happens. Removed most of the code from threaded IRQ function and improved exception handling code. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added support for Emergency call ChargingRamakrishna Pallala2010-12-091-0/+103
| | | | | | | | | | Added a sysfs interface for enabling/disabling Emergency call support. During the charge cycle depending on the temperature and emergency charge enablement parameters we set the current limit value accordingly. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Register Initialization and conversion of coulombs to amphrsRamakrishna Pallala2010-12-091-20/+66
| | | | | | | | | | cc_to_coloumbs/ msic_get_charge_now functions are added to return charge in mAhrs. Init_msic_regs function modified to add two more registers initialization. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_mid: Medfield battery driver tidy upAlan Cox2010-12-091-245/+204
| | | | | | | | | - Fix kfifo build problem - Clean up printing to debug level for the most part - Remove an impossible NULL check - Clean up all the ipc writing loops using a single helper Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_mid: Intel MSIC battery driverRamakrishna Pallala2010-12-091-0/+2158
Battery driver for the Intel MID platform devices based on the Medfield chipset. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>