#include <linux/device.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/spi/ad7879.h>
#include <linux/module.h>
#include "ad7879.h"
Go to the source code of this file.
#define AD7879_ACQ |
( |
|
x | ) |
((x & 0x3) << 8) |
#define AD7879_AUX_BIT (1<<3) |
#define AD7879_AUXHIGH_BIT (1<<10) |
#define AD7879_AUXLOW_BIT (1<<11) |
#define AD7879_AUXVBATMASK_BIT (1<<14) |
#define AD7879_AVG |
( |
|
x | ) |
((x & 0x3) << 7) |
#define AD7879_DFR (0 << 9) /* differential */ |
#define AD7879_FCD |
( |
|
x | ) |
((x & 0x3) << 0) |
#define AD7879_GPIO_DATA (1 << 12) |
#define AD7879_GPIO_EN (1 << 13) |
#define AD7879_GPIOALERTMASK_BIT (1<<12) |
#define AD7879_GPIODIR (1 << 11) |
#define AD7879_GPIOPOL (1 << 10) |
#define AD7879_INTMODE_BIT (1<<13) |
#define AD7879_MFS |
( |
|
x | ) |
((x & 0x3) << 5) |
#define AD7879_MODE_INT (1 << 15) /* PENIRQ disabled INT enabled */ |
#define AD7879_MODE_NOC (0 << 10) /* Do not convert */ |
#define AD7879_MODE_SCC (1 << 10) /* Single channel conversion */ |
#define AD7879_PM |
( |
|
x | ) |
((x & 0x3) << 14) |
#define AD7879_PM_DYN (1) |
#define AD7879_PM_FULLON (2) |
#define AD7879_PM_SHUTDOWN (0) |
#define AD7879_REG_AUX1HIGH 4 |
#define AD7879_REG_AUX1LOW 5 |
#define AD7879_REG_AUXVBAT 12 |
#define AD7879_REG_CTRL1 1 |
#define AD7879_REG_CTRL2 2 |
#define AD7879_REG_CTRL3 3 |
#define AD7879_REG_REVID 14 |
#define AD7879_REG_TEMP 13 |
#define AD7879_REG_TEMP1HIGH 6 |
#define AD7879_REG_TEMP1LOW 7 |
#define AD7879_REG_XPLUS 8 |
#define AD7879_REG_YPLUS 9 |
#define AD7879_REG_ZEROS 0 |
#define AD7879_RESET (1 << 4) |
#define AD7879_SER (1 << 9) /* non-differential */ |
#define AD7879_TEMP_BIT (1<<1) |
#define AD7879_TEMPHIGH_BIT (1<<8) |
#define AD7879_TEMPLOW_BIT (1<<9) |
#define AD7879_TEMPMASK_BIT (1<<15) |
#define AD7879_TMR |
( |
|
x | ) |
((x & 0xFF) << 0) |
#define AD7879_VBAT_BIT (1<<2) |
#define AD7879_XPLUS_BIT (1<<6) |
#define AD7879_YPLUS_BIT (1<<7) |
#define AD7879_Z1_BIT (1<<5) |
#define AD7879_Z2_BIT (1<<4) |
#define MAX_12BIT ((1<<12)-1) |
- Enumerator:
AD7879_SEQ_XPOS |
|
AD7879_SEQ_YPOS |
|
AD7879_SEQ_Z1 |
|
AD7879_SEQ_Z2 |
|
AD7879_NR_SENSE |
|
Definition at line 97 of file ad7879.c.
MODULE_DESCRIPTION |
( |
"AD7879(-1) touchscreen Driver" |
| ) |
|
SIMPLE_DEV_PM_OPS |
( |
ad7879_pm_ops |
, |
|
|
ad7879_suspend |
, |
|
|
ad7879_resume |
|
|
) |
| |