input: ti_am33x_tsc: Order of TSC wires, made configurable

The current driver expected touchscreen input
wires(XP,XN,YP,YN) to be connected in a particular order.
Making changes to accept this as platform data.

Sebastian reworked the original patch and removed a lot of the not
required pieces.

Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
This commit is contained in:
Patil, Rachna
2013-01-24 03:45:06 +00:00
committed by Sebastian Andrzej Siewior
parent abeccee403
commit bb76dc09dd
3 changed files with 98 additions and 19 deletions

View File

@ -12,12 +12,24 @@
* A step configured to read a single
* co-ordinate value, can be applied
* more number of times for better results.
* @wire_config: Different EVM's could have a different order
* for connecting wires on touchscreen.
* We need to provide an 8 bit number where in
* the 1st four bits represent the analog lines
* and the next 4 bits represent positive/
* negative terminal on that input line.
* Notations to represent the input lines and
* terminals resoectively is as follows:
* AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7.
* XP = 0, XN = 1, YP = 2, YN = 3.
*
*/
struct tsc_data {
int wires;
int x_plate_resistance;
int steps_to_configure;
int wire_config[10];
};
#endif