#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/of.h>
Go to the source code of this file.
| #define LPC32XX_TS_PM_OPS NULL |
| #define LPC32XX_TSC_ADCCON_AUTO_EN (1 << 0) |
| #define LPC32XX_TSC_ADCCON_IRQ_TO_FIFO_4 (0x1 << 11) |
| #define LPC32XX_TSC_ADCCON_POWER_UP (1 << 2) |
| #define LPC32XX_TSC_ADCCON_X_SAMPLE_SIZE |
( |
|
s | ) |
((10 - (s)) << 7) |
| #define LPC32XX_TSC_ADCCON_Y_SAMPLE_SIZE |
( |
|
s | ) |
((10 - (s)) << 4) |
| #define LPC32XX_TSC_ADCDAT_VALUE_MASK 0x000003FF |
| #define LPC32XX_TSC_AUX_MAX 0x3C |
| #define LPC32XX_TSC_AUX_MIN 0x38 |
| #define LPC32XX_TSC_AUX_UTR 0x34 |
| #define LPC32XX_TSC_CON 0x08 |
| #define LPC32XX_TSC_DTR 0x10 |
| #define LPC32XX_TSC_DXP 0x20 |
| #define LPC32XX_TSC_FIFO 0x0C |
| #define LPC32XX_TSC_FIFO_NORMALIZE_X_VAL |
( |
|
x | ) |
(((x) & 0x03FF0000) >> 16) |
| #define LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL |
( |
|
y | ) |
((y) & 0x000003FF) |
| #define LPC32XX_TSC_FIFO_TS_P_LEVEL (1 << 31) |
| #define LPC32XX_TSC_MAX_X 0x28 |
| #define LPC32XX_TSC_MAX_XY_VAL 0x3FF |
| #define LPC32XX_TSC_MAX_Y 0x30 |
| #define LPC32XX_TSC_MIN_X 0x24 |
| #define LPC32XX_TSC_MIN_XY_VAL 0x0 |
| #define LPC32XX_TSC_MIN_Y 0x2C |
| #define LPC32XX_TSC_RTR 0x14 |
| #define LPC32XX_TSC_SEL 0x04 |
| #define LPC32XX_TSC_SEL_DEFVAL 0x0284 |
| #define LPC32XX_TSC_STAT 0x00 |
| #define LPC32XX_TSC_STAT_FIFO_EMPTY (1 << 7) |
| #define LPC32XX_TSC_STAT_FIFO_OVRRN (1 << 8) |
| #define LPC32XX_TSC_TTR 0x1C |
| #define LPC32XX_TSC_UTR 0x18 |
| #define MOD_NAME "ts-lpc32xx" |
| MODULE_ALIAS |
( |
"platform:lpc32xx_ts" |
| ) |
|
| MODULE_DESCRIPTION |
( |
"LPC32XX TSC Driver" |
| ) |
|
| module_platform_driver |
( |
lpc32xx_ts_driver |
| ) |
|