Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
da9052.h File Reference
#include <linux/interrupt.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/completion.h>
#include <linux/list.h>
#include <linux/mfd/core.h>
#include <linux/mfd/da9052/reg.h>

Go to the source code of this file.

Data Structures

struct  da9052
 

Macros

#define DA9052_ADC_VDDOUT   0
 
#define DA9052_ADC_ICH   1
 
#define DA9052_ADC_TBAT   2
 
#define DA9052_ADC_VBAT   3
 
#define DA9052_ADC_IN4   4
 
#define DA9052_ADC_IN5   5
 
#define DA9052_ADC_IN6   6
 
#define DA9052_ADC_TSI   7
 
#define DA9052_ADC_TJUNC   8
 
#define DA9052_ADC_VBBAT   9
 
#define DA9052_IRQ_DCIN   0
 
#define DA9052_IRQ_VBUS   1
 
#define DA9052_IRQ_DCINREM   2
 
#define DA9052_IRQ_VBUSREM   3
 
#define DA9052_IRQ_VDDLOW   4
 
#define DA9052_IRQ_ALARM   5
 
#define DA9052_IRQ_SEQRDY   6
 
#define DA9052_IRQ_COMP1V2   7
 
#define DA9052_IRQ_NONKEY   8
 
#define DA9052_IRQ_IDFLOAT   9
 
#define DA9052_IRQ_IDGND   10
 
#define DA9052_IRQ_CHGEND   11
 
#define DA9052_IRQ_TBAT   12
 
#define DA9052_IRQ_ADC_EOM   13
 
#define DA9052_IRQ_PENDOWN   14
 
#define DA9052_IRQ_TSIREADY   15
 
#define DA9052_IRQ_GPI0   16
 
#define DA9052_IRQ_GPI1   17
 
#define DA9052_IRQ_GPI2   18
 
#define DA9052_IRQ_GPI3   19
 
#define DA9052_IRQ_GPI4   20
 
#define DA9052_IRQ_GPI5   21
 
#define DA9052_IRQ_GPI6   22
 
#define DA9052_IRQ_GPI7   23
 
#define DA9052_IRQ_GPI8   24
 
#define DA9052_IRQ_GPI9   25
 
#define DA9052_IRQ_GPI10   26
 
#define DA9052_IRQ_GPI11   27
 
#define DA9052_IRQ_GPI12   28
 
#define DA9052_IRQ_GPI13   29
 
#define DA9052_IRQ_GPI14   30
 
#define DA9052_IRQ_GPI15   31
 

Enumerations

enum  da9052_chip_id { DA9052, DA9053_AA, DA9053_BA, DA9053_BB }
 

Functions

int da9052_adc_manual_read (struct da9052 *da9052, unsigned char channel)
 
int da9052_adc_read_temp (struct da9052 *da9052)
 
int da9052_device_init (struct da9052 *da9052, u8 chip_id)
 
void da9052_device_exit (struct da9052 *da9052)
 

Variables

struct regmap_config da9052_regmap_config
 

Macro Definition Documentation

#define DA9052_ADC_ICH   1

Definition at line 38 of file da9052.h.

#define DA9052_ADC_IN4   4

Definition at line 41 of file da9052.h.

#define DA9052_ADC_IN5   5

Definition at line 42 of file da9052.h.

#define DA9052_ADC_IN6   6

Definition at line 43 of file da9052.h.

#define DA9052_ADC_TBAT   2

Definition at line 39 of file da9052.h.

#define DA9052_ADC_TJUNC   8

Definition at line 45 of file da9052.h.

#define DA9052_ADC_TSI   7

Definition at line 44 of file da9052.h.

#define DA9052_ADC_VBAT   3

Definition at line 40 of file da9052.h.

#define DA9052_ADC_VBBAT   9

Definition at line 46 of file da9052.h.

#define DA9052_ADC_VDDOUT   0

Definition at line 37 of file da9052.h.

#define DA9052_IRQ_ADC_EOM   13

Definition at line 61 of file da9052.h.

#define DA9052_IRQ_ALARM   5

Definition at line 53 of file da9052.h.

#define DA9052_IRQ_CHGEND   11

Definition at line 59 of file da9052.h.

#define DA9052_IRQ_COMP1V2   7

Definition at line 55 of file da9052.h.

#define DA9052_IRQ_DCIN   0

Definition at line 48 of file da9052.h.

#define DA9052_IRQ_DCINREM   2

Definition at line 50 of file da9052.h.

#define DA9052_IRQ_GPI0   16

Definition at line 64 of file da9052.h.

#define DA9052_IRQ_GPI1   17

Definition at line 65 of file da9052.h.

#define DA9052_IRQ_GPI10   26

Definition at line 74 of file da9052.h.

#define DA9052_IRQ_GPI11   27

Definition at line 75 of file da9052.h.

#define DA9052_IRQ_GPI12   28

Definition at line 76 of file da9052.h.

#define DA9052_IRQ_GPI13   29

Definition at line 77 of file da9052.h.

#define DA9052_IRQ_GPI14   30

Definition at line 78 of file da9052.h.

#define DA9052_IRQ_GPI15   31

Definition at line 79 of file da9052.h.

#define DA9052_IRQ_GPI2   18

Definition at line 66 of file da9052.h.

#define DA9052_IRQ_GPI3   19

Definition at line 67 of file da9052.h.

#define DA9052_IRQ_GPI4   20

Definition at line 68 of file da9052.h.

#define DA9052_IRQ_GPI5   21

Definition at line 69 of file da9052.h.

#define DA9052_IRQ_GPI6   22

Definition at line 70 of file da9052.h.

#define DA9052_IRQ_GPI7   23

Definition at line 71 of file da9052.h.

#define DA9052_IRQ_GPI8   24

Definition at line 72 of file da9052.h.

#define DA9052_IRQ_GPI9   25

Definition at line 73 of file da9052.h.

#define DA9052_IRQ_IDFLOAT   9

Definition at line 57 of file da9052.h.

#define DA9052_IRQ_IDGND   10

Definition at line 58 of file da9052.h.

#define DA9052_IRQ_NONKEY   8

Definition at line 56 of file da9052.h.

#define DA9052_IRQ_PENDOWN   14

Definition at line 62 of file da9052.h.

#define DA9052_IRQ_SEQRDY   6

Definition at line 54 of file da9052.h.

#define DA9052_IRQ_TBAT   12

Definition at line 60 of file da9052.h.

#define DA9052_IRQ_TSIREADY   15

Definition at line 63 of file da9052.h.

#define DA9052_IRQ_VBUS   1

Definition at line 49 of file da9052.h.

#define DA9052_IRQ_VBUSREM   3

Definition at line 51 of file da9052.h.

#define DA9052_IRQ_VDDLOW   4

Definition at line 52 of file da9052.h.

Enumeration Type Documentation

Enumerator:
DA9052 
DA9053_AA 
DA9053_BA 
DA9053_BB 

Definition at line 81 of file da9052.h.

Function Documentation

int da9052_adc_manual_read ( struct da9052 da9052,
unsigned char  channel 
)

Definition at line 378 of file da9052-core.c.

int da9052_adc_read_temp ( struct da9052 da9052)

Definition at line 437 of file da9052-core.c.

void da9052_device_exit ( struct da9052 da9052)

Definition at line 819 of file da9052-core.c.

int da9052_device_init ( struct da9052 da9052,
u8  chip_id 
)

Definition at line 772 of file da9052-core.c.

Variable Documentation

struct regmap_config da9052_regmap_config

Definition at line 759 of file da9052-core.c.