Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tps65090.c File Reference
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/mfd/core.h>
#include <linux/mfd/tps65090.h>
#include <linux/regmap.h>
#include <linux/err.h>

Go to the source code of this file.

Data Structures

struct  tps65090_irq_data
 

Macros

#define NUM_INT_REG   2
 
#define TOTAL_NUM_REG   0x18
 
#define TPS65090_INT_STS   0x0
 
#define TPS65090_INT_STS2   0x1
 
#define TPS65090_INT_MSK   0x2
 
#define TPS65090_INT_MSK2   0x3
 
#define TPS65090_IRQ(_reg, _mask_pos)
 

Functions

int tps65090_write (struct device *dev, int reg, uint8_t val)
 
 EXPORT_SYMBOL_GPL (tps65090_write)
 
int tps65090_read (struct device *dev, int reg, uint8_t *val)
 
 EXPORT_SYMBOL_GPL (tps65090_read)
 
int tps65090_set_bits (struct device *dev, int reg, uint8_t bit_num)
 
 EXPORT_SYMBOL_GPL (tps65090_set_bits)
 
int tps65090_clr_bits (struct device *dev, int reg, uint8_t bit_num)
 
 EXPORT_SYMBOL_GPL (tps65090_clr_bits)
 
 MODULE_DEVICE_TABLE (i2c, tps65090_id_table)
 
 subsys_initcall (tps65090_init)
 
 module_exit (tps65090_exit)
 
 MODULE_DESCRIPTION ("TPS65090 core driver")
 
 MODULE_AUTHOR ("Venu Byravarasu <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define NUM_INT_REG   2

Definition at line 31 of file tps65090.c.

#define TOTAL_NUM_REG   0x18

Definition at line 32 of file tps65090.c.

#define TPS65090_INT_MSK   0x2

Definition at line 39 of file tps65090.c.

#define TPS65090_INT_MSK2   0x3

Definition at line 40 of file tps65090.c.

#define TPS65090_INT_STS   0x0

Definition at line 35 of file tps65090.c.

#define TPS65090_INT_STS2   0x1

Definition at line 36 of file tps65090.c.

#define TPS65090_IRQ (   _reg,
  _mask_pos 
)
Value:
{ \
.mask_reg = (_reg), \
.mask_pos = (_mask_pos), \
}

Definition at line 47 of file tps65090.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tps65090_write  )
EXPORT_SYMBOL_GPL ( tps65090_read  )
EXPORT_SYMBOL_GPL ( tps65090_set_bits  )
EXPORT_SYMBOL_GPL ( tps65090_clr_bits  )
MODULE_AUTHOR ( "Venu Byravarasu <[email protected]>"  )
MODULE_DESCRIPTION ( "TPS65090 core driver )
MODULE_DEVICE_TABLE ( i2c  ,
tps65090_id_table   
)
module_exit ( tps65090_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( tps65090_init  )
int tps65090_clr_bits ( struct device dev,
int  reg,
uint8_t  bit_num 
)

Definition at line 107 of file tps65090.c.

int tps65090_read ( struct device dev,
int  reg,
uint8_t val 
)

Definition at line 88 of file tps65090.c.

int tps65090_set_bits ( struct device dev,
int  reg,
uint8_t  bit_num 
)

Definition at line 100 of file tps65090.c.

int tps65090_write ( struct device dev,
int  reg,
uint8_t  val 
)

Definition at line 81 of file tps65090.c.