stmpe.h (e789995d5c612ecda83a9feb53fb2e42a51f685b) stmpe.h (7f7f4ea15ef4645f3888310a7a761fc2c4f689c9)
1/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License, version 2
5 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
6 */
7
8#ifndef __STMPE_H

--- 91 unchanged lines hidden (view full) ---

100int stmpe_probe(struct stmpe_client_info *ci, int partnum);
101int stmpe_remove(struct stmpe *stmpe);
102
103#define STMPE_ICR_LSB_HIGH (1 << 2)
104#define STMPE_ICR_LSB_EDGE (1 << 1)
105#define STMPE_ICR_LSB_GIM (1 << 0)
106
107/*
1/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License, version 2
5 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
6 */
7
8#ifndef __STMPE_H

--- 91 unchanged lines hidden (view full) ---

100int stmpe_probe(struct stmpe_client_info *ci, int partnum);
101int stmpe_remove(struct stmpe *stmpe);
102
103#define STMPE_ICR_LSB_HIGH (1 << 2)
104#define STMPE_ICR_LSB_EDGE (1 << 1)
105#define STMPE_ICR_LSB_GIM (1 << 0)
106
107/*
108 * STMPE801
109 */
110#define STMPE801_ID 0x0108
111#define STMPE801_NR_INTERNAL_IRQS 1
112
113#define STMPE801_REG_CHIP_ID 0x00
114#define STMPE801_REG_VERSION_ID 0x02
115#define STMPE801_REG_SYS_CTRL 0x04
116#define STMPE801_REG_GPIO_INT_EN 0x08
117#define STMPE801_REG_GPIO_INT_STA 0x09
118#define STMPE801_REG_GPIO_MP_STA 0x10
119#define STMPE801_REG_GPIO_SET_PIN 0x11
120#define STMPE801_REG_GPIO_DIR 0x12
121
122#define STMPE801_REG_SYS_CTRL_RESET (1 << 7)
123#define STMPE801_REG_SYS_CTRL_INT_EN (1 << 2)
124#define STMPE801_REG_SYS_CTRL_INT_HI (1 << 0)
125
126/*
108 * STMPE811
109 */
110
111#define STMPE811_IRQ_TOUCH_DET 0
112#define STMPE811_IRQ_FIFO_TH 1
113#define STMPE811_IRQ_FIFO_OFLOW 2
114#define STMPE811_IRQ_FIFO_FULL 3
115#define STMPE811_IRQ_FIFO_EMPTY 4

--- 103 unchanged lines hidden ---
127 * STMPE811
128 */
129
130#define STMPE811_IRQ_TOUCH_DET 0
131#define STMPE811_IRQ_FIFO_TH 1
132#define STMPE811_IRQ_FIFO_OFLOW 2
133#define STMPE811_IRQ_FIFO_FULL 3
134#define STMPE811_IRQ_FIFO_EMPTY 4

--- 103 unchanged lines hidden ---