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

Go to the source code of this file.

Data Structures

struct  w90p910_ts
 

Macros

#define ADC_DELAY   0xf00
 
#define ADC_DOWN   0x01
 
#define ADC_TSC_Y   (0x01 << 8)
 
#define ADC_TSC_X   (0x00 << 8)
 
#define TSC_FOURWIRE   (~(0x03 << 1))
 
#define ADC_CLK_EN   (0x01 << 28) /* ADC clock enable */
 
#define ADC_READ_CON   (0x01 << 12)
 
#define ADC_CONV   (0x01 << 13)
 
#define ADC_SEMIAUTO   (0x01 << 14)
 
#define ADC_WAITTRIG   (0x03 << 14)
 
#define ADC_RST1   (0x01 << 16)
 
#define ADC_RST0   (0x00 << 16)
 
#define ADC_EN   (0x01 << 17)
 
#define ADC_INT   (0x01 << 18)
 
#define WT_INT   (0x01 << 20)
 
#define ADC_INT_EN   (0x01 << 21)
 
#define LVD_INT_EN   (0x01 << 22)
 
#define WT_INT_EN   (0x01 << 23)
 
#define ADC_DIV   (0x04 << 1) /* div = 6 */
 

Enumerations

enum  ts_state { TS_WAIT_NEW_PACKET, TS_WAIT_X_COORD, TS_WAIT_Y_COORD, TS_IDLE }
 

Functions

 module_platform_driver (w90x900ts_driver)
 
 MODULE_AUTHOR ("Wan ZongShun <[email protected]>")
 
 MODULE_DESCRIPTION ("w90p910 touch screen driver!")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:nuc900-ts")
 

Macro Definition Documentation

#define ADC_CLK_EN   (0x01 << 28) /* ADC clock enable */

Definition at line 27 of file w90p910_ts.c.

#define ADC_CONV   (0x01 << 13)

Definition at line 29 of file w90p910_ts.c.

#define ADC_DELAY   0xf00

Definition at line 22 of file w90p910_ts.c.

#define ADC_DIV   (0x04 << 1) /* div = 6 */

Definition at line 40 of file w90p910_ts.c.

#define ADC_DOWN   0x01

Definition at line 23 of file w90p910_ts.c.

#define ADC_EN   (0x01 << 17)

Definition at line 34 of file w90p910_ts.c.

#define ADC_INT   (0x01 << 18)

Definition at line 35 of file w90p910_ts.c.

#define ADC_INT_EN   (0x01 << 21)

Definition at line 37 of file w90p910_ts.c.

#define ADC_READ_CON   (0x01 << 12)

Definition at line 28 of file w90p910_ts.c.

#define ADC_RST0   (0x00 << 16)

Definition at line 33 of file w90p910_ts.c.

#define ADC_RST1   (0x01 << 16)

Definition at line 32 of file w90p910_ts.c.

#define ADC_SEMIAUTO   (0x01 << 14)

Definition at line 30 of file w90p910_ts.c.

#define ADC_TSC_X   (0x00 << 8)

Definition at line 25 of file w90p910_ts.c.

#define ADC_TSC_Y   (0x01 << 8)

Definition at line 24 of file w90p910_ts.c.

#define ADC_WAITTRIG   (0x03 << 14)

Definition at line 31 of file w90p910_ts.c.

#define LVD_INT_EN   (0x01 << 22)

Definition at line 38 of file w90p910_ts.c.

#define TSC_FOURWIRE   (~(0x03 << 1))

Definition at line 26 of file w90p910_ts.c.

#define WT_INT   (0x01 << 20)

Definition at line 36 of file w90p910_ts.c.

#define WT_INT_EN   (0x01 << 23)

Definition at line 39 of file w90p910_ts.c.

Enumeration Type Documentation

enum ts_state
Enumerator:
TS_WAIT_NEW_PACKET 
TS_WAIT_X_COORD 
TS_WAIT_Y_COORD 
TS_IDLE 

Definition at line 42 of file w90p910_ts.c.

Function Documentation

MODULE_ALIAS ( "platform:nuc900-ts )
MODULE_AUTHOR ( "Wan ZongShun <[email protected]>"  )
MODULE_DESCRIPTION ( "w90p910 touch screen driver!"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( w90x900ts_driver  )