Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mpr121_touchkey.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
#include <linux/i2c/mpr121_touchkey.h>

Go to the source code of this file.

Data Structures

struct  mpr121_touchkey
 
struct  mpr121_init_register
 

Macros

#define ELE_TOUCH_STATUS_0_ADDR   0x0
 
#define ELE_TOUCH_STATUS_1_ADDR   0X1
 
#define MHD_RISING_ADDR   0x2b
 
#define NHD_RISING_ADDR   0x2c
 
#define NCL_RISING_ADDR   0x2d
 
#define FDL_RISING_ADDR   0x2e
 
#define MHD_FALLING_ADDR   0x2f
 
#define NHD_FALLING_ADDR   0x30
 
#define NCL_FALLING_ADDR   0x31
 
#define FDL_FALLING_ADDR   0x32
 
#define ELE0_TOUCH_THRESHOLD_ADDR   0x41
 
#define ELE0_RELEASE_THRESHOLD_ADDR   0x42
 
#define AFE_CONF_ADDR   0x5c
 
#define FILTER_CONF_ADDR   0x5d
 
#define ELECTRODE_CONF_ADDR   0x5e
 
#define ELECTRODE_CONF_QUICK_CHARGE   0x80
 
#define AUTO_CONFIG_CTRL_ADDR   0x7b
 
#define AUTO_CONFIG_USL_ADDR   0x7d
 
#define AUTO_CONFIG_LSL_ADDR   0x7e
 
#define AUTO_CONFIG_TL_ADDR   0x7f
 
#define TOUCH_THRESHOLD   0x08
 
#define RELEASE_THRESHOLD   0x05
 
#define TOUCH_STATUS_MASK   0xfff
 
#define MPR121_MAX_KEY_COUNT   12
 

Functions

 MODULE_DEVICE_TABLE (i2c, mpr121_id)
 
 module_i2c_driver (mpr_touchkey_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Zhang Jiejing <[email protected]>")
 
 MODULE_DESCRIPTION ("Touch Key driver for Freescale MPR121 Chip")
 

Macro Definition Documentation

#define AFE_CONF_ADDR   0x5c

Definition at line 38 of file mpr121_touchkey.c.

#define AUTO_CONFIG_CTRL_ADDR   0x7b

Definition at line 47 of file mpr121_touchkey.c.

#define AUTO_CONFIG_LSL_ADDR   0x7e

Definition at line 49 of file mpr121_touchkey.c.

#define AUTO_CONFIG_TL_ADDR   0x7f

Definition at line 50 of file mpr121_touchkey.c.

#define AUTO_CONFIG_USL_ADDR   0x7d

Definition at line 48 of file mpr121_touchkey.c.

#define ELE0_RELEASE_THRESHOLD_ADDR   0x42

Definition at line 37 of file mpr121_touchkey.c.

#define ELE0_TOUCH_THRESHOLD_ADDR   0x41

Definition at line 36 of file mpr121_touchkey.c.

#define ELE_TOUCH_STATUS_0_ADDR   0x0

Definition at line 26 of file mpr121_touchkey.c.

#define ELE_TOUCH_STATUS_1_ADDR   0X1

Definition at line 27 of file mpr121_touchkey.c.

#define ELECTRODE_CONF_ADDR   0x5e

Definition at line 45 of file mpr121_touchkey.c.

#define ELECTRODE_CONF_QUICK_CHARGE   0x80

Definition at line 46 of file mpr121_touchkey.c.

#define FDL_FALLING_ADDR   0x32

Definition at line 35 of file mpr121_touchkey.c.

#define FDL_RISING_ADDR   0x2e

Definition at line 31 of file mpr121_touchkey.c.

#define FILTER_CONF_ADDR   0x5d

Definition at line 39 of file mpr121_touchkey.c.

#define MHD_FALLING_ADDR   0x2f

Definition at line 32 of file mpr121_touchkey.c.

#define MHD_RISING_ADDR   0x2b

Definition at line 28 of file mpr121_touchkey.c.

#define MPR121_MAX_KEY_COUNT   12

Definition at line 58 of file mpr121_touchkey.c.

#define NCL_FALLING_ADDR   0x31

Definition at line 34 of file mpr121_touchkey.c.

#define NCL_RISING_ADDR   0x2d

Definition at line 30 of file mpr121_touchkey.c.

#define NHD_FALLING_ADDR   0x30

Definition at line 33 of file mpr121_touchkey.c.

#define NHD_RISING_ADDR   0x2c

Definition at line 29 of file mpr121_touchkey.c.

#define RELEASE_THRESHOLD   0x05

Definition at line 54 of file mpr121_touchkey.c.

#define TOUCH_STATUS_MASK   0xfff

Definition at line 56 of file mpr121_touchkey.c.

#define TOUCH_THRESHOLD   0x08

Definition at line 53 of file mpr121_touchkey.c.

Function Documentation

MODULE_AUTHOR ( "Zhang Jiejing <[email protected]>"  )
MODULE_DESCRIPTION ( "Touch Key driver for Freescale MPR121 Chip"  )
MODULE_DEVICE_TABLE ( i2c  ,
mpr121_id   
)
module_i2c_driver ( mpr_touchkey_driver  )
MODULE_LICENSE ( "GPL"  )