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

Go to the source code of this file.

Macros

#define I2C_ADDR_PMIC   (0xCC >> 1) /* Charger, Flash LED */
 
#define I2C_ADDR_MUIC   (0x4A >> 1)
 
#define I2C_ADDR_HAPTIC   (0x90 >> 1)
 

Functions

int max77693_read_reg (struct regmap *map, u8 reg, u8 *dest)
 
 EXPORT_SYMBOL_GPL (max77693_read_reg)
 
int max77693_bulk_read (struct regmap *map, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL_GPL (max77693_bulk_read)
 
int max77693_write_reg (struct regmap *map, u8 reg, u8 value)
 
 EXPORT_SYMBOL_GPL (max77693_write_reg)
 
int max77693_bulk_write (struct regmap *map, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL_GPL (max77693_bulk_write)
 
int max77693_update_reg (struct regmap *map, u8 reg, u8 val, u8 mask)
 
 EXPORT_SYMBOL_GPL (max77693_update_reg)
 
 MODULE_DEVICE_TABLE (i2c, max77693_i2c_id)
 
 subsys_initcall (max77693_i2c_init)
 
 module_exit (max77693_i2c_exit)
 
 MODULE_DESCRIPTION ("MAXIM 77693 multi-function core driver")
 
 MODULE_AUTHOR ("SangYoung, Son <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define I2C_ADDR_HAPTIC   (0x90 >> 1)

Definition at line 41 of file max77693.c.

#define I2C_ADDR_MUIC   (0x4A >> 1)

Definition at line 40 of file max77693.c.

#define I2C_ADDR_PMIC   (0xCC >> 1) /* Charger, Flash LED */

Definition at line 39 of file max77693.c.

Function Documentation

EXPORT_SYMBOL_GPL ( max77693_read_reg  )
EXPORT_SYMBOL_GPL ( max77693_bulk_read  )
EXPORT_SYMBOL_GPL ( max77693_write_reg  )
EXPORT_SYMBOL_GPL ( max77693_bulk_write  )
EXPORT_SYMBOL_GPL ( max77693_update_reg  )
int max77693_bulk_read ( struct regmap map,
u8  reg,
int  count,
u8 buf 
)

Definition at line 63 of file max77693.c.

int max77693_bulk_write ( struct regmap map,
u8  reg,
int  count,
u8 buf 
)

Definition at line 83 of file max77693.c.

int max77693_read_reg ( struct regmap map,
u8  reg,
u8 dest 
)

Definition at line 51 of file max77693.c.

int max77693_update_reg ( struct regmap map,
u8  reg,
u8  val,
u8  mask 
)

Definition at line 93 of file max77693.c.

int max77693_write_reg ( struct regmap map,
u8  reg,
u8  value 
)

Definition at line 73 of file max77693.c.

MODULE_AUTHOR ( SangYoung,
Son< hello.son @samsung.com >"   
)
MODULE_DESCRIPTION ( "MAXIM 77693 multi-function core driver )
MODULE_DEVICE_TABLE ( i2c  ,
max77693_i2c_id   
)
module_exit ( max77693_i2c_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max77693_i2c_init  )