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

Go to the source code of this file.

Macros

#define TC3589x_CLKMODE_MODCTL_SLEEP   0x0
 
#define TC3589x_CLKMODE_MODCTL_OPERATION   (1 << 0)
 

Functions

int tc3589x_reg_read (struct tc3589x *tc3589x, u8 reg)
 
 EXPORT_SYMBOL_GPL (tc3589x_reg_read)
 
int tc3589x_reg_write (struct tc3589x *tc3589x, u8 reg, u8 data)
 
 EXPORT_SYMBOL_GPL (tc3589x_reg_write)
 
int tc3589x_block_read (struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values)
 
 EXPORT_SYMBOL_GPL (tc3589x_block_read)
 
int tc3589x_block_write (struct tc3589x *tc3589x, u8 reg, u8 length, const u8 *values)
 
 EXPORT_SYMBOL_GPL (tc3589x_block_write)
 
int tc3589x_set_bits (struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val)
 
 EXPORT_SYMBOL_GPL (tc3589x_set_bits)
 
 MODULE_DEVICE_TABLE (i2c, tc3589x_id)
 
 subsys_initcall (tc3589x_init)
 
 module_exit (tc3589x_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("TC3589x MFD core driver")
 
 MODULE_AUTHOR ("Hanumath Prasad, Rabin Vincent")
 

Macro Definition Documentation

#define TC3589x_CLKMODE_MODCTL_OPERATION   (1 << 0)

Definition at line 20 of file tc3589x.c.

#define TC3589x_CLKMODE_MODCTL_SLEEP   0x0

Definition at line 19 of file tc3589x.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tc3589x_reg_read  )
EXPORT_SYMBOL_GPL ( tc3589x_reg_write  )
EXPORT_SYMBOL_GPL ( tc3589x_block_read  )
EXPORT_SYMBOL_GPL ( tc3589x_block_write  )
EXPORT_SYMBOL_GPL ( tc3589x_set_bits  )
MODULE_AUTHOR ( "Hanumath  Prasad,
Rabin Vincent"   
)
MODULE_DESCRIPTION ( "TC3589x MFD core driver )
MODULE_DEVICE_TABLE ( i2c  ,
tc3589x_id   
)
module_exit ( tc3589x_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( tc3589x_init  )
int tc3589x_block_read ( struct tc3589x tc3589x,
u8  reg,
u8  length,
u8 values 
)

tc3589x_block_read() - read multiple TC3589x registers : Device to read from : First register : Number of registers : Buffer to write to

Definition at line 66 of file tc3589x.c.

int tc3589x_block_write ( struct tc3589x tc3589x,
u8  reg,
u8  length,
const u8 values 
)

tc3589x_block_write() - write multiple TC3589x registers : Device to write to : First register : Number of registers : Values to write

Definition at line 86 of file tc3589x.c.

int tc3589x_reg_read ( struct tc3589x tc3589x,
u8  reg 
)

tc3589x_reg_read() - read a single TC3589x register : Device to read from : Register to read

Definition at line 27 of file tc3589x.c.

int tc3589x_reg_write ( struct tc3589x tc3589x,
u8  reg,
u8  data 
)

tc3589x_reg_read() - write a single TC3589x register : Device to write to : Register to read : Value to write

Definition at line 46 of file tc3589x.c.

int tc3589x_set_bits ( struct tc3589x tc3589x,
u8  reg,
u8  mask,
u8  val 
)

tc3589x_set_bits() - set the value of a bitfield in a TC3589x register : Device to write to : Register to write : Mask of bits to set : Value to set

Definition at line 108 of file tc3589x.c.