Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/da903x.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
Go to the source code of this file.
Data Structures | |
struct | da9030_adc_res |
struct | da9030_battery_thresholds |
struct | da9030_charger |
Functions | |
module_platform_driver (da903x_battery_driver) | |
MODULE_DESCRIPTION ("DA9030 battery charger driver") | |
MODULE_AUTHOR ("Mike Rapoport, CompuLab") | |
MODULE_LICENSE ("GPL") | |
#define DA9030_ADC_AUTO_CONTROL 0x31 |
Definition at line 37 of file da9030_battery.c.
#define DA9030_ADC_AUTO_SLEEP_ENABLE (1 << 0) |
Definition at line 43 of file da9030_battery.c.
#define DA9030_ADC_ICH_ENABLE (1 << 2) |
Definition at line 41 of file da9030_battery.c.
#define DA9030_ADC_LDO_INT_ENABLE (1 << 4) |
Definition at line 35 of file da9030_battery.c.
#define DA9030_ADC_MAN_CONTROL 0x30 |
Definition at line 33 of file da9030_battery.c.
#define DA9030_ADC_TBAT_ENABLE (1 << 5) |
Definition at line 38 of file da9030_battery.c.
#define DA9030_ADC_TBATREF_ENABLE (1 << 5) |
Definition at line 34 of file da9030_battery.c.
#define DA9030_ADC_VBAT_ENABLE (1 << 1) |
Definition at line 42 of file da9030_battery.c.
#define DA9030_ADC_VBAT_IN_TXON (1 << 4) |
Definition at line 39 of file da9030_battery.c.
#define DA9030_ADC_VCH_ENABLE (1 << 3) |
Definition at line 40 of file da9030_battery.c.
#define DA9030_CHARGE_CONTROL 0x28 |
Definition at line 30 of file da9030_battery.c.
#define DA9030_CHRG_CHARGER_ENABLE (1 << 7) |
Definition at line 31 of file da9030_battery.c.
#define DA9030_FAULT_LOG 0x0a |
Definition at line 26 of file da9030_battery.c.
#define DA9030_FAULT_LOG_OVER_TEMP (1 << 7) |
Definition at line 27 of file da9030_battery.c.
#define DA9030_FAULT_LOG_VBAT_OVER (1 << 4) |
Definition at line 28 of file da9030_battery.c.
#define DA9030_ICHAVERAGE_RES 0x46 |
Definition at line 56 of file da9030_battery.c.
#define DA9030_ICHMAX_RES 0x44 |
Definition at line 54 of file da9030_battery.c.
#define DA9030_ICHMIN_RES 0x45 |
Definition at line 55 of file da9030_battery.c.
#define DA9030_TBAT_RES 0x49 |
Definition at line 59 of file da9030_battery.c.
#define DA9030_TBATHIGHN 0x35 |
Definition at line 48 of file da9030_battery.c.
#define DA9030_TBATHIGHP 0x34 |
Definition at line 47 of file da9030_battery.c.
#define DA9030_TBATLOW 0x36 |
Definition at line 49 of file da9030_battery.c.
#define DA9030_VBAT_RES 0x41 |
Definition at line 51 of file da9030_battery.c.
#define DA9030_VBATMIN_RES 0x42 |
Definition at line 52 of file da9030_battery.c.
#define DA9030_VBATMINTXON_RES 0x43 |
Definition at line 53 of file da9030_battery.c.
#define DA9030_VBATMON 0x32 |
Definition at line 45 of file da9030_battery.c.
#define DA9030_VBATMONTXON 0x33 |
Definition at line 46 of file da9030_battery.c.
#define DA9030_VCHMAX_RES 0x47 |
Definition at line 57 of file da9030_battery.c.
#define DA9030_VCHMIN_RES 0x48 |
Definition at line 58 of file da9030_battery.c.
MODULE_AUTHOR | ( | "Mike | Rapoport, |
CompuLab" | |||
) |
MODULE_DESCRIPTION | ( | "DA9030 battery charger driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | da903x_battery_driver | ) |