#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/spi/spi.h>
#include <linux/spi/tsc2005.h>
Go to the source code of this file.
#define TSC2005_CFR0_CLOCK_1MHZ 0x1000 |
#define TSC2005_CFR0_INITVALUE |
Value:
TSC2005_CFR0_CLOCK_1MHZ | \
TSC2005_CFR0_RESOLUTION12 | \
TSC2005_CFR0_PRECHARGE_276US | \
TSC2005_CFR0_PENMODE)
Definition at line 77 of file tsc2005.c.
#define TSC2005_CFR0_PENMODE 0x8000 |
#define TSC2005_CFR0_PRECHARGE_276US 0x0040 |
#define TSC2005_CFR0_RESOLUTION12 0x2000 |
#define TSC2005_CFR0_RW_MASK 0x3fff |
#define TSC2005_CFR0_STABTIME_1MS 0x0300 |
#define TSC2005_CFR1_BATCHDELAY_4MS 0x0003 |
#define TSC2005_CFR2_AVG_7 0x0800 |
#define TSC2005_CFR2_INITVALUE |
Value:
TSC2005_CFR2_MAVE_Y | \
TSC2005_CFR2_MAVE_Z | \
TSC2005_CFR2_MEDIUM_15 | \
TSC2005_CFR2_AVG_7)
Definition at line 96 of file tsc2005.c.
#define TSC2005_CFR2_MAVE_X 0x0010 |
#define TSC2005_CFR2_MAVE_Y 0x0008 |
#define TSC2005_CFR2_MAVE_Z 0x0004 |
#define TSC2005_CFR2_MEDIUM_15 0x3000 |
#define TSC2005_CMD_12BIT 0x04 |
#define TSC2005_CMD_NORMAL 0x00 |
#define TSC2005_CMD_STOP 0x01 |
#define TSC2005_PENUP_TIME_MS 40 |
#define TSC2005_REG_CFR0 0x0060 |
#define TSC2005_REG_CFR1 0x0068 |
#define TSC2005_REG_CFR2 0x0070 |
#define TSC2005_REG_PND0 0x0002 |
#define TSC2005_REG_READ 0x0001 |
#define TSC2005_REG_TEMP_HIGH 0x0050 |
#define TSC2005_REG_X 0x0000 |
#define TSC2005_REG_Y 0x0008 |
#define TSC2005_REG_Z1 0x0010 |
#define TSC2005_REG_Z2 0x0018 |
#define TSC2005_SPI_MAX_SPEED_HZ 10000000 |
MODULE_DESCRIPTION |
( |
"TSC2005 Touchscreen Driver" |
| ) |
|
module_spi_driver |
( |
tsc2005_driver |
| ) |
|