Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
da9052-battery.c File Reference
#include <linux/delay.h>
#include <linux/freezer.h>
#include <linux/fs.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/uaccess.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/da9052/da9052.h>
#include <linux/mfd/da9052/pdata.h>
#include <linux/mfd/da9052/reg.h>

Go to the source code of this file.

Data Structures

struct  da9052_battery
 

Macros

#define DA9052_BAT_CUTOFF_VOLT   2800
 
#define DA9052_BAT_TSH   62000
 
#define DA9052_BAT_LOW_CAP   4
 
#define DA9052_AVG_SZ   4
 
#define DA9052_VC_TBL_SZ   68
 
#define DA9052_VC_TBL_REF_SZ   3
 
#define DA9052_ISET_USB_MASK   0x0F
 
#define DA9052_CHG_USB_ILIM_MASK   0x40
 
#define DA9052_CHG_LIM_COLS   16
 
#define DA9052_MEAN(x, y)   ((x + y) / 2)
 

Enumerations

enum  charger_type_enum { DA9052_NOCHARGER = 1, DA9052_CHARGER }
 

Functions

 module_platform_driver (da9052_bat_driver)
 
 MODULE_DESCRIPTION ("DA9052 BAT Device Driver")
 
 MODULE_AUTHOR ("David Dajun Chen <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:da9052-bat")
 

Macro Definition Documentation

#define DA9052_AVG_SZ   4

Definition at line 32 of file da9052-battery.c.

#define DA9052_BAT_CUTOFF_VOLT   2800

Definition at line 29 of file da9052-battery.c.

#define DA9052_BAT_LOW_CAP   4

Definition at line 31 of file da9052-battery.c.

#define DA9052_BAT_TSH   62000

Definition at line 30 of file da9052-battery.c.

#define DA9052_CHG_LIM_COLS   16

Definition at line 38 of file da9052-battery.c.

#define DA9052_CHG_USB_ILIM_MASK   0x40

Definition at line 37 of file da9052-battery.c.

#define DA9052_ISET_USB_MASK   0x0F

Definition at line 36 of file da9052-battery.c.

#define DA9052_MEAN (   x,
  y 
)    ((x + y) / 2)

Definition at line 40 of file da9052-battery.c.

#define DA9052_VC_TBL_REF_SZ   3

Definition at line 34 of file da9052-battery.c.

#define DA9052_VC_TBL_SZ   68

Definition at line 33 of file da9052-battery.c.

Enumeration Type Documentation

Enumerator:
DA9052_NOCHARGER 
DA9052_CHARGER 

Definition at line 42 of file da9052-battery.c.

Function Documentation

MODULE_ALIAS ( "platform:da9052-bat"  )
MODULE_AUTHOR ( "David Dajun Chen <[email protected]>"  )
MODULE_DESCRIPTION ( "DA9052 BAT Device Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( da9052_bat_driver  )