Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
da9052-core.c File Reference
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/mfd/core.h>
#include <linux/slab.h>
#include <linux/module.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.

Macros

#define DA9052_NUM_IRQ_REGS   4
 
#define DA9052_IRQ_MASK_POS_1   0x01
 
#define DA9052_IRQ_MASK_POS_2   0x02
 
#define DA9052_IRQ_MASK_POS_3   0x04
 
#define DA9052_IRQ_MASK_POS_4   0x08
 
#define DA9052_IRQ_MASK_POS_5   0x10
 
#define DA9052_IRQ_MASK_POS_6   0x20
 
#define DA9052_IRQ_MASK_POS_7   0x40
 
#define DA9052_IRQ_MASK_POS_8   0x80
 

Functions

int da9052_adc_manual_read (struct da9052 *da9052, unsigned char channel)
 
 EXPORT_SYMBOL_GPL (da9052_adc_manual_read)
 
int da9052_adc_read_temp (struct da9052 *da9052)
 
 EXPORT_SYMBOL_GPL (da9052_adc_read_temp)
 
 EXPORT_SYMBOL_GPL (da9052_regmap_config)
 
int __devinit da9052_device_init (struct da9052 *da9052, u8 chip_id)
 
void da9052_device_exit (struct da9052 *da9052)
 
 MODULE_AUTHOR ("David Dajun Chen <[email protected]>")
 
 MODULE_DESCRIPTION ("DA9052 MFD Core")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct regmap_config da9052_regmap_config
 

Macro Definition Documentation

#define DA9052_IRQ_MASK_POS_1   0x01

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

#define DA9052_IRQ_MASK_POS_2   0x02

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

#define DA9052_IRQ_MASK_POS_3   0x04

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

#define DA9052_IRQ_MASK_POS_4   0x08

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

#define DA9052_IRQ_MASK_POS_5   0x10

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

#define DA9052_IRQ_MASK_POS_6   0x20

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

#define DA9052_IRQ_MASK_POS_7   0x40

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

#define DA9052_IRQ_MASK_POS_8   0x80

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

#define DA9052_NUM_IRQ_REGS   4

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

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 __devinit da9052_device_init ( struct da9052 da9052,
u8  chip_id 
)

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

EXPORT_SYMBOL_GPL ( da9052_adc_manual_read  )
EXPORT_SYMBOL_GPL ( da9052_adc_read_temp  )
EXPORT_SYMBOL_GPL ( da9052_regmap_config  )
MODULE_AUTHOR ( "David Dajun Chen <[email protected]>"  )
MODULE_DESCRIPTION ( "DA9052 MFD Core"  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct regmap_config da9052_regmap_config
Initial value:
= {
.reg_bits = 8,
.val_bits = 8,
.cache_type = REGCACHE_RBTREE,
.max_register = DA9052_PAGE1_CON_REG,
.readable_reg = da9052_reg_readable,
.writeable_reg = da9052_reg_writeable,
.volatile_reg = da9052_reg_volatile,
}

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