From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/input/touchscreen/ist30xxa/ist30xx_tsp.h | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 drivers/input/touchscreen/ist30xxa/ist30xx_tsp.h (limited to 'drivers/input/touchscreen/ist30xxa/ist30xx_tsp.h') diff --git a/drivers/input/touchscreen/ist30xxa/ist30xx_tsp.h b/drivers/input/touchscreen/ist30xxa/ist30xx_tsp.h new file mode 100644 index 00000000..c6f2149b --- /dev/null +++ b/drivers/input/touchscreen/ist30xxa/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 (5) + +#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 (21) +#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_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_TAEYANG (0x8) +#define TSP_TYPE_TOVIS (0x7) +#define TSP_TYPE_ELK (0x6) +#define TSP_TYPE_OTHERS (0x5) + +#define IST30XXB_PARSE_TSPTYPE(n) ((n >> 1) & 0xF) + +#endif // __IST30XX_TSP_H__ -- cgit v1.3.1