Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
auo-pixcir-ts.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/input/auo-pixcir-ts.h>

Go to the source code of this file.

Data Structures

struct  auo_pixcir_ts
 
struct  auo_point_t
 

Macros

#define AUO_PIXCIR_REG_X1_LSB   0x00
 
#define AUO_PIXCIR_REG_X1_MSB   0x01
 
#define AUO_PIXCIR_REG_Y1_LSB   0x02
 
#define AUO_PIXCIR_REG_Y1_MSB   0x03
 
#define AUO_PIXCIR_REG_X2_LSB   0x04
 
#define AUO_PIXCIR_REG_X2_MSB   0x05
 
#define AUO_PIXCIR_REG_Y2_LSB   0x06
 
#define AUO_PIXCIR_REG_Y2_MSB   0x07
 
#define AUO_PIXCIR_REG_STRENGTH   0x0d
 
#define AUO_PIXCIR_REG_STRENGTH_X1_LSB   0x0e
 
#define AUO_PIXCIR_REG_STRENGTH_X1_MSB   0x0f
 
#define AUO_PIXCIR_REG_RAW_DATA_X   0x2b
 
#define AUO_PIXCIR_REG_RAW_DATA_Y   0x4f
 
#define AUO_PIXCIR_REG_X_SENSITIVITY   0x6f
 
#define AUO_PIXCIR_REG_Y_SENSITIVITY   0x70
 
#define AUO_PIXCIR_REG_INT_SETTING   0x71
 
#define AUO_PIXCIR_REG_INT_WIDTH   0x72
 
#define AUO_PIXCIR_REG_POWER_MODE   0x73
 
#define AUO_PIXCIR_REG_VERSION   0x77
 
#define AUO_PIXCIR_REG_CALIBRATE   0x78
 
#define AUO_PIXCIR_REG_TOUCHAREA_X1   0x1e
 
#define AUO_PIXCIR_REG_TOUCHAREA_Y1   0x1f
 
#define AUO_PIXCIR_REG_TOUCHAREA_X2   0x20
 
#define AUO_PIXCIR_REG_TOUCHAREA_Y2   0x21
 
#define AUO_PIXCIR_REG_EEPROM_CALIB_X   0x42
 
#define AUO_PIXCIR_REG_EEPROM_CALIB_Y   0xad
 
#define AUO_PIXCIR_INT_TPNUM_MASK   0xe0
 
#define AUO_PIXCIR_INT_TPNUM_SHIFT   5
 
#define AUO_PIXCIR_INT_RELEASE   (1 << 4)
 
#define AUO_PIXCIR_INT_ENABLE   (1 << 3)
 
#define AUO_PIXCIR_INT_POL_HIGH   (1 << 2)
 
#define AUO_PIXCIR_INT_MODE_MASK   0x03
 
#define AUO_PIXCIR_POWER_ACTIVE   0x00
 
#define AUO_PIXCIR_POWER_SLEEP   0x01
 
#define AUO_PIXCIR_POWER_DEEP_SLEEP   0x02
 
#define AUO_PIXCIR_POWER_MASK   0x03
 
#define AUO_PIXCIR_POWER_ALLOW_SLEEP   (1 << 2)
 
#define AUO_PIXCIR_POWER_IDLE_TIME(ms)   ((ms & 0xf) << 4)
 
#define AUO_PIXCIR_CALIBRATE   0x03
 
#define AUO_PIXCIR_EEPROM_CALIB_X_LEN   62
 
#define AUO_PIXCIR_EEPROM_CALIB_Y_LEN   36
 
#define AUO_PIXCIR_RAW_DATA_X_LEN   18
 
#define AUO_PIXCIR_RAW_DATA_Y_LEN   11
 
#define AUO_PIXCIR_STRENGTH_ENABLE   (1 << 0)
 
#define AUO_PIXCIR_REPORT_POINTS   2
 
#define AUO_PIXCIR_MAX_AREA   0xff
 
#define AUO_PIXCIR_PENUP_TIMEOUT_MS   10
 

Functions

 MODULE_DEVICE_TABLE (i2c, auo_pixcir_idtable)
 
 module_i2c_driver (auo_pixcir_driver)
 
 MODULE_DESCRIPTION ("AUO-PIXCIR touchscreen driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Heiko Stuebner <[email protected]>")
 

Macro Definition Documentation

#define AUO_PIXCIR_CALIBRATE   0x03

Definition at line 96 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_EEPROM_CALIB_X_LEN   62

Definition at line 98 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_EEPROM_CALIB_Y_LEN   36

Definition at line 99 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_ENABLE   (1 << 3)

Definition at line 78 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_MODE_MASK   0x03

Definition at line 80 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_POL_HIGH   (1 << 2)

Definition at line 79 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_RELEASE   (1 << 4)

Definition at line 77 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_TPNUM_MASK   0xe0

Definition at line 75 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_INT_TPNUM_SHIFT   5

Definition at line 76 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_MAX_AREA   0xff

Definition at line 108 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_PENUP_TIMEOUT_MS   10

Definition at line 109 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_ACTIVE   0x00

Definition at line 88 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_ALLOW_SLEEP   (1 << 2)

Definition at line 93 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_DEEP_SLEEP   0x02

Definition at line 90 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_IDLE_TIME (   ms)    ((ms & 0xf) << 4)

Definition at line 94 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_MASK   0x03

Definition at line 91 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_POWER_SLEEP   0x01

Definition at line 89 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_RAW_DATA_X_LEN   18

Definition at line 101 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_RAW_DATA_Y_LEN   11

Definition at line 102 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_CALIBRATE   0x78

Definition at line 65 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_EEPROM_CALIB_X   0x42

Definition at line 72 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_EEPROM_CALIB_Y   0xad

Definition at line 73 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_INT_SETTING   0x71

Definition at line 60 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_INT_WIDTH   0x72

Definition at line 61 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_POWER_MODE   0x73

Definition at line 62 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_RAW_DATA_X   0x2b

Definition at line 55 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_RAW_DATA_Y   0x4f

Definition at line 56 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_STRENGTH   0x0d

Definition at line 51 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_STRENGTH_X1_LSB   0x0e

Definition at line 52 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_STRENGTH_X1_MSB   0x0f

Definition at line 53 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_TOUCHAREA_X1   0x1e

Definition at line 67 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_TOUCHAREA_X2   0x20

Definition at line 69 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_TOUCHAREA_Y1   0x1f

Definition at line 68 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_TOUCHAREA_Y2   0x21

Definition at line 70 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_VERSION   0x77

Definition at line 64 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_X1_LSB   0x00

Definition at line 42 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_X1_MSB   0x01

Definition at line 43 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_X2_LSB   0x04

Definition at line 46 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_X2_MSB   0x05

Definition at line 47 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_X_SENSITIVITY   0x6f

Definition at line 58 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_Y1_LSB   0x02

Definition at line 44 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_Y1_MSB   0x03

Definition at line 45 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_Y2_LSB   0x06

Definition at line 48 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_Y2_MSB   0x07

Definition at line 49 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REG_Y_SENSITIVITY   0x70

Definition at line 59 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_REPORT_POINTS   2

Definition at line 107 of file auo-pixcir-ts.c.

#define AUO_PIXCIR_STRENGTH_ENABLE   (1 << 0)

Definition at line 104 of file auo-pixcir-ts.c.

Function Documentation

MODULE_AUTHOR ( "Heiko Stuebner <[email protected]>"  )
MODULE_DESCRIPTION ( "AUO-PIXCIR touchscreen driver )
MODULE_DEVICE_TABLE ( i2c  ,
auo_pixcir_idtable   
)
module_i2c_driver ( auo_pixcir_driver  )
MODULE_LICENSE ( "GPL v2 )