Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
max8997.c File Reference
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/mfd/core.h>
#include <linux/mfd/max8997.h>
#include <linux/mfd/max8997-private.h>

Go to the source code of this file.

Macros

#define I2C_ADDR_PMIC   (0xCC >> 1)
 
#define I2C_ADDR_MUIC   (0x4A >> 1)
 
#define I2C_ADDR_BATTERY   (0x6C >> 1)
 
#define I2C_ADDR_RTC   (0x0C >> 1)
 
#define I2C_ADDR_HAPTIC   (0x90 >> 1)
 

Functions

int max8997_read_reg (struct i2c_client *i2c, u8 reg, u8 *dest)
 
 EXPORT_SYMBOL_GPL (max8997_read_reg)
 
int max8997_bulk_read (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL_GPL (max8997_bulk_read)
 
int max8997_write_reg (struct i2c_client *i2c, u8 reg, u8 value)
 
 EXPORT_SYMBOL_GPL (max8997_write_reg)
 
int max8997_bulk_write (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL_GPL (max8997_bulk_write)
 
int max8997_update_reg (struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
 
 EXPORT_SYMBOL_GPL (max8997_update_reg)
 
 MODULE_DEVICE_TABLE (i2c, max8998_i2c_id)
 
 subsys_initcall (max8997_i2c_init)
 
 module_exit (max8997_i2c_exit)
 
 MODULE_DESCRIPTION ("MAXIM 8997 multi-function core driver")
 
 MODULE_AUTHOR ("MyungJoo Ham <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define I2C_ADDR_BATTERY   (0x6C >> 1)

Definition at line 36 of file max8997.c.

#define I2C_ADDR_HAPTIC   (0x90 >> 1)

Definition at line 38 of file max8997.c.

#define I2C_ADDR_MUIC   (0x4A >> 1)

Definition at line 35 of file max8997.c.

#define I2C_ADDR_PMIC   (0xCC >> 1)

Definition at line 34 of file max8997.c.

#define I2C_ADDR_RTC   (0x0C >> 1)

Definition at line 37 of file max8997.c.

Function Documentation

EXPORT_SYMBOL_GPL ( max8997_read_reg  )
EXPORT_SYMBOL_GPL ( max8997_bulk_read  )
EXPORT_SYMBOL_GPL ( max8997_write_reg  )
EXPORT_SYMBOL_GPL ( max8997_bulk_write  )
EXPORT_SYMBOL_GPL ( max8997_update_reg  )
int max8997_bulk_read ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 67 of file max8997.c.

int max8997_bulk_write ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 94 of file max8997.c.

int max8997_read_reg ( struct i2c_client i2c,
u8  reg,
u8 dest 
)

Definition at line 50 of file max8997.c.

int max8997_update_reg ( struct i2c_client i2c,
u8  reg,
u8  val,
u8  mask 
)

Definition at line 109 of file max8997.c.

int max8997_write_reg ( struct i2c_client i2c,
u8  reg,
u8  value 
)

Definition at line 82 of file max8997.c.

MODULE_AUTHOR ( "MyungJoo Ham <[email protected]>"  )
MODULE_DESCRIPTION ( "MAXIM 8997 multi-function core driver )
MODULE_DEVICE_TABLE ( i2c  ,
max8998_i2c_id   
)
module_exit ( max8997_i2c_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max8997_i2c_init  )