2 * Copyright (C) 2010, Imagis Technology Co. Ltd. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #ifndef __IST30XX_TSP_H__
17 #define __IST30XX_TSP_H__
19 #define IST30XX_DD_VERSION (5)
21 #define IST30XX_MULTIPLE_TSP (0)
23 #define TSP_CHIP_VENDOR ("IMAGIS")
24 #define TSP_CHIP_NAME ("IST3038")
26 #define FLAG_NODE_Y (0)
27 #define FLAG_NODE_X (1)
29 #define NODE_TX_NUM (21)
30 #define NODE_RX_NUM (14)
31 #define NODE_TOTAL_NUM (NODE_TX_NUM * NODE_RX_NUM)
33 #define TSP_TX_NUM (21)
34 #define TSP_RX_NUM (13)
35 #define TSP_TOTAL_NUM (TSP_TX_NUM * TSP_RX_NUM)
37 #define TSP_TYPE_UNKNOWN (0xF0)
38 #define TSP_TYPE_ALPS (0xF)
39 #define TSP_TYPE_EELY (0xE)
40 #define TSP_TYPE_TOP (0xD)
41 #define TSP_TYPE_MELFAS (0xC)
42 #define TSP_TYPE_ILJIN (0xB)
43 #define TSP_TYPE_SYNOPEX (0xA)
44 #define TSP_TYPE_SMAC (0x9)
45 #define TSP_TYPE_TAEYANG (0x8)
46 #define TSP_TYPE_TOVIS (0x7)
47 #define TSP_TYPE_ELK (0x6)
48 #define TSP_TYPE_OTHERS (0x5)
50 #define IST30XXB_PARSE_TSPTYPE(n) ((n >> 1) & 0xF)
52 #endif // __IST30XX_TSP_H__