Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
wm831x-ts.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/pm.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/irq.h>
#include <linux/mfd/wm831x/pdata.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  wm831x_ts
 

Macros

#define WM831X_TCH_ENA   0x8000 /* TCH_ENA */
 
#define WM831X_TCH_CVT_ENA   0x4000 /* TCH_CVT_ENA */
 
#define WM831X_TCH_SLPENA   0x1000 /* TCH_SLPENA */
 
#define WM831X_TCH_Z_ENA   0x0400 /* TCH_Z_ENA */
 
#define WM831X_TCH_Y_ENA   0x0200 /* TCH_Y_ENA */
 
#define WM831X_TCH_X_ENA   0x0100 /* TCH_X_ENA */
 
#define WM831X_TCH_DELAY_MASK   0x00E0 /* TCH_DELAY - [7:5] */
 
#define WM831X_TCH_DELAY_SHIFT   5 /* TCH_DELAY - [7:5] */
 
#define WM831X_TCH_DELAY_WIDTH   3 /* TCH_DELAY - [7:5] */
 
#define WM831X_TCH_RATE_MASK   0x001F /* TCH_RATE - [4:0] */
 
#define WM831X_TCH_RATE_SHIFT   0 /* TCH_RATE - [4:0] */
 
#define WM831X_TCH_RATE_WIDTH   5 /* TCH_RATE - [4:0] */
 
#define WM831X_TCH_PD_WK   0x2000 /* TCH_PD_WK */
 
#define WM831X_TCH_5WIRE   0x1000 /* TCH_5WIRE */
 
#define WM831X_TCH_PDONLY   0x0800 /* TCH_PDONLY */
 
#define WM831X_TCH_ISEL   0x0100 /* TCH_ISEL */
 
#define WM831X_TCH_RPU_MASK   0x000F /* TCH_RPU - [3:0] */
 
#define WM831X_TCH_RPU_SHIFT   0 /* TCH_RPU - [3:0] */
 
#define WM831X_TCH_RPU_WIDTH   4 /* TCH_RPU - [3:0] */
 
#define WM831X_TCH_PD   0x8000 /* TCH_PD1 */
 
#define WM831X_TCH_DATA_MASK   0x0FFF /* TCH_DATA - [11:0] */
 
#define WM831X_TCH_DATA_SHIFT   0 /* TCH_DATA - [11:0] */
 
#define WM831X_TCH_DATA_WIDTH   12 /* TCH_DATA - [11:0] */
 

Functions

 module_platform_driver (wm831x_ts_driver)
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_DESCRIPTION ("WM831x PMIC touchscreen driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wm831x-touch")
 

Macro Definition Documentation

#define WM831X_TCH_5WIRE   0x1000 /* TCH_5WIRE */

Definition at line 49 of file wm831x-ts.c.

#define WM831X_TCH_CVT_ENA   0x4000 /* TCH_CVT_ENA */

Definition at line 33 of file wm831x-ts.c.

#define WM831X_TCH_DATA_MASK   0x0FFF /* TCH_DATA - [11:0] */

Definition at line 60 of file wm831x-ts.c.

#define WM831X_TCH_DATA_SHIFT   0 /* TCH_DATA - [11:0] */

Definition at line 61 of file wm831x-ts.c.

#define WM831X_TCH_DATA_WIDTH   12 /* TCH_DATA - [11:0] */

Definition at line 62 of file wm831x-ts.c.

#define WM831X_TCH_DELAY_MASK   0x00E0 /* TCH_DELAY - [7:5] */

Definition at line 38 of file wm831x-ts.c.

#define WM831X_TCH_DELAY_SHIFT   5 /* TCH_DELAY - [7:5] */

Definition at line 39 of file wm831x-ts.c.

#define WM831X_TCH_DELAY_WIDTH   3 /* TCH_DELAY - [7:5] */

Definition at line 40 of file wm831x-ts.c.

#define WM831X_TCH_ENA   0x8000 /* TCH_ENA */

Definition at line 32 of file wm831x-ts.c.

#define WM831X_TCH_ISEL   0x0100 /* TCH_ISEL */

Definition at line 51 of file wm831x-ts.c.

#define WM831X_TCH_PD   0x8000 /* TCH_PD1 */

Definition at line 59 of file wm831x-ts.c.

#define WM831X_TCH_PD_WK   0x2000 /* TCH_PD_WK */

Definition at line 48 of file wm831x-ts.c.

#define WM831X_TCH_PDONLY   0x0800 /* TCH_PDONLY */

Definition at line 50 of file wm831x-ts.c.

#define WM831X_TCH_RATE_MASK   0x001F /* TCH_RATE - [4:0] */

Definition at line 41 of file wm831x-ts.c.

#define WM831X_TCH_RATE_SHIFT   0 /* TCH_RATE - [4:0] */

Definition at line 42 of file wm831x-ts.c.

#define WM831X_TCH_RATE_WIDTH   5 /* TCH_RATE - [4:0] */

Definition at line 43 of file wm831x-ts.c.

#define WM831X_TCH_RPU_MASK   0x000F /* TCH_RPU - [3:0] */

Definition at line 52 of file wm831x-ts.c.

#define WM831X_TCH_RPU_SHIFT   0 /* TCH_RPU - [3:0] */

Definition at line 53 of file wm831x-ts.c.

#define WM831X_TCH_RPU_WIDTH   4 /* TCH_RPU - [3:0] */

Definition at line 54 of file wm831x-ts.c.

#define WM831X_TCH_SLPENA   0x1000 /* TCH_SLPENA */

Definition at line 34 of file wm831x-ts.c.

#define WM831X_TCH_X_ENA   0x0100 /* TCH_X_ENA */

Definition at line 37 of file wm831x-ts.c.

#define WM831X_TCH_Y_ENA   0x0200 /* TCH_Y_ENA */

Definition at line 36 of file wm831x-ts.c.

#define WM831X_TCH_Z_ENA   0x0400 /* TCH_Z_ENA */

Definition at line 35 of file wm831x-ts.c.

Function Documentation

MODULE_ALIAS ( "platform:wm831x-touch"  )
MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "WM831x PMIC touchscreen driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( wm831x_ts_driver  )