Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/workqueue.h>
#include <linux/mfd/stmpe.h>
Go to the source code of this file.
Data Structures | |
struct | stmpe_touch |
Macros | |
#define | STMPE_REG_INT_STA 0x0B |
#define | STMPE_REG_ADC_CTRL1 0x20 |
#define | STMPE_REG_ADC_CTRL2 0x21 |
#define | STMPE_REG_TSC_CTRL 0x40 |
#define | STMPE_REG_TSC_CFG 0x41 |
#define | STMPE_REG_FIFO_TH 0x4A |
#define | STMPE_REG_FIFO_STA 0x4B |
#define | STMPE_REG_FIFO_SIZE 0x4C |
#define | STMPE_REG_TSC_DATA_XYZ 0x52 |
#define | STMPE_REG_TSC_FRACTION_Z 0x56 |
#define | STMPE_REG_TSC_I_DRIVE 0x58 |
#define | OP_MOD_XYZ 0 |
#define | STMPE_TSC_CTRL_TSC_EN (1<<0) |
#define | STMPE_FIFO_STA_RESET (1<<0) |
#define | STMPE_IRQ_TOUCH_DET 0 |
#define | SAMPLE_TIME(x) ((x & 0xf) << 4) |
#define | MOD_12B(x) ((x & 0x1) << 3) |
#define | REF_SEL(x) ((x & 0x1) << 1) |
#define | ADC_FREQ(x) (x & 0x3) |
#define | AVE_CTRL(x) ((x & 0x3) << 6) |
#define | DET_DELAY(x) ((x & 0x7) << 3) |
#define | SETTLING(x) (x & 0x7) |
#define | FRACTION_Z(x) (x & 0x7) |
#define | I_DRIVE(x) (x & 0x1) |
#define | OP_MODE(x) ((x & 0x7) << 1) |
#define | STMPE_TS_NAME "stmpe-ts" |
#define | XY_MASK 0xfff |
Functions | |
module_platform_driver (stmpe_ts_driver) | |
MODULE_AUTHOR ("Luotao Fu <[email protected]>") | |
MODULE_DESCRIPTION ("STMPEXXX touchscreen driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:"STMPE_TS_NAME) | |
Definition at line 54 of file stmpe-ts.c.
Definition at line 55 of file stmpe-ts.c.
Definition at line 56 of file stmpe-ts.c.
Definition at line 58 of file stmpe-ts.c.
Definition at line 59 of file stmpe-ts.c.
Definition at line 52 of file stmpe-ts.c.
#define OP_MOD_XYZ 0 |
Definition at line 43 of file stmpe-ts.c.
Definition at line 60 of file stmpe-ts.c.
Definition at line 53 of file stmpe-ts.c.
Definition at line 51 of file stmpe-ts.c.
Definition at line 57 of file stmpe-ts.c.
#define STMPE_FIFO_STA_RESET (1<<0) |
Definition at line 47 of file stmpe-ts.c.
#define STMPE_IRQ_TOUCH_DET 0 |
Definition at line 49 of file stmpe-ts.c.
#define STMPE_REG_ADC_CTRL1 0x20 |
Definition at line 32 of file stmpe-ts.c.
#define STMPE_REG_ADC_CTRL2 0x21 |
Definition at line 33 of file stmpe-ts.c.
#define STMPE_REG_FIFO_SIZE 0x4C |
Definition at line 38 of file stmpe-ts.c.
#define STMPE_REG_FIFO_STA 0x4B |
Definition at line 37 of file stmpe-ts.c.
#define STMPE_REG_FIFO_TH 0x4A |
Definition at line 36 of file stmpe-ts.c.
#define STMPE_REG_INT_STA 0x0B |
Definition at line 31 of file stmpe-ts.c.
#define STMPE_REG_TSC_CFG 0x41 |
Definition at line 35 of file stmpe-ts.c.
#define STMPE_REG_TSC_CTRL 0x40 |
Definition at line 34 of file stmpe-ts.c.
#define STMPE_REG_TSC_DATA_XYZ 0x52 |
Definition at line 39 of file stmpe-ts.c.
#define STMPE_REG_TSC_FRACTION_Z 0x56 |
Definition at line 40 of file stmpe-ts.c.
#define STMPE_REG_TSC_I_DRIVE 0x58 |
Definition at line 41 of file stmpe-ts.c.
#define STMPE_TS_NAME "stmpe-ts" |
Definition at line 62 of file stmpe-ts.c.
#define STMPE_TSC_CTRL_TSC_EN (1<<0) |
Definition at line 45 of file stmpe-ts.c.
#define XY_MASK 0xfff |
Definition at line 63 of file stmpe-ts.c.
MODULE_ALIAS | ( | "platform:" | STMPE_TS_NAME | ) |
MODULE_AUTHOR | ( | "Luotao Fu <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "STMPEXXX touchscreen driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | stmpe_ts_driver | ) |