diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/input/touchscreen/ist30xx/ist30xx_tsp.h | |
Diffstat (limited to 'drivers/input/touchscreen/ist30xx/ist30xx_tsp.h')
| -rw-r--r-- | drivers/input/touchscreen/ist30xx/ist30xx_tsp.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ist30xx/ist30xx_tsp.h b/drivers/input/touchscreen/ist30xx/ist30xx_tsp.h new file mode 100644 index 00000000..aca0a629 --- /dev/null +++ b/drivers/input/touchscreen/ist30xx/ist30xx_tsp.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2010, Imagis Technology Co. Ltd. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __IST30XX_TSP_H__ +#define __IST30XX_TSP_H__ + +#define IST30XX_DD_VERSION (3) +// Multi TSP not yet enabled in imagis 3038. +#define IST30XX_MULTIPLE_TSP (0) + +#define TSP_CHIP_VENDOR ("IMAGIS") +#define TSP_CHIP_NAME ("IST3038") + +#define FLAG_NODE_Y (0) +#define FLAG_NODE_X (1) + +#define NODE_TX_NUM (22) +#define NODE_RX_NUM (14) +#define NODE_TOTAL_NUM (NODE_TX_NUM * NODE_RX_NUM) + +#define TSP_TX_NUM (21) +#define TSP_RX_NUM (13) +#define TSP_TOTAL_NUM (TSP_TX_NUM * TSP_RX_NUM) + +#define TSP_THRESHOLD (30) +#define TKEY_THRESHOLD (600) + +#define IST30XXB_PARSE_TSPTYPE(k) ((k >> 1) & 0xF) + +#define TSP_TYPE_UNKNOWN (0xF0) +#define TSP_TYPE_ALPS (0xF) +#define TSP_TYPE_EELY (0xE) +#define TSP_TYPE_TOP (0xD) +#define TSP_TYPE_MELFAS (0xC) +#define TSP_TYPE_ILJIN (0xB) +#define TSP_TYPE_SYNOPEX (0xA) +#define TSP_TYPE_SMAC (0x9) +#define TSP_TYPE_OTHERS (0x8) + +#endif // __IST30XX_TSP_H__ |
